Inconsistent behavior: Bookmark indicator is not deleted when deleting a empty line

SyntaxEditor for WPF Forum

Posted 7 years ago by Jianjun Wang
Version: 16.1.0633
Avatar

There is a inconsistent behavior on how the bookmark indicator is deleted when deleting a line:

The bookmark indicator is deleted when a non-empty line is deleted but it is not deleted if it is on a empty line and when the empty line is deleted.

Steps to repro:

1. Lauch the Syntax Editor sample, go to Syntax Editor - General QuickStarts\Indicators - Bookmark

2. Put the caret at empty line 5 and click the "Toggle Bookmark" toolbar button to add a bookmark on the line 5

3. Click the line selection margin at line 5 to select the line 5

4. Delete the line 5. The bookmark indicator is still there.

 

But if

2. Put the caret at non-empty line 6 and click the "Toggle Bookmark" toolbar button to add a bookmark on the line 6

3. Click the line selection margin at line 6 to select the line 6

4. Delete the line 6. The bookmark indicator is deleted.

 

How can I get a consistent behavior of deleting the bookmark when a line is deleted regardless the line is empty or not?

Comments (2)

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Thanks for letting us know about this.  We have updated it for the next maintenance release to remove the bookmark if you delete the empty line.


Actipro Software Support

Posted 7 years ago by Jianjun Wang
Avatar

Thanks for the quick reply.

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.