Glyphs for ZeroLength SpanIndicators Not Always Drawn

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Boyd - Automated Software Testing Consultant / Developer, Patterson Consulting, LLC
Avatar
I'm using SpanIndicators to store a history of document navigation to support the back/forward capabilities like found in VS 2005. While testing, I decided to have the indicators draw a glyph so I could see where these history markers were located. That's when I noticed that the glyphs don't appear to be drawn when the caret is located at the beginning of a new line.

When at the beginning of the first line, they draw fine. It's only at the beginning of each subsequent line that they don't draw. Maybe this is because the token before the offset is an 'EndOfLine' token? Not sure, but thought I'd bring it to your attention.

On a similar note, it appears you can't add a ZeroLength SpanIndicator at the last offset of the document (i.e. the 'EndOfDocument' token). You get the 'ArgumentOutOfRange' exception indicating that the offset is beyond the scope of the document. Since this offset is valid for Selections and everything else, I would think it should be valid for ZeroLength SpanIndicators as well.

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks Boyd, both these are now fixed for the next release.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 7 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.