2

I am writing tests for a small plugin which adds text properties with virtual text to a buffer.

I want to check what a text property's virtual text is on a given line. Failing that, I would like to check the length of the virtual text.

The only way I can see to obtain the text property/ies on a line is prop_list(). But the information it returns does not include the virtual text. Not only that, it seems the length of the text property is always 1.

Is there any way to get the text or its length?

1 Answer 1

2

I have created this pull request today to add support for getting the text associated with a text property.

1
  • That's the perfect answer, thank you! Aug 25, 2023 at 6:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.