Undo-behavior after inserting completion item

SyntaxEditor for WPF Forum

Posted 6 years ago by Timo Emondts
Version: 11.2.0555
Platform: .NET 4.5
Environment: Windows 7 (64-bit)
Avatar

This is reproducable in the Sample Browser (QuickStart 10)

1. Start typing (e.g. "Inc" for Increment) and then request auto completion.

2. Select one item (e.g. "Increment").

3. Undo

 

 

While it's correct that the text displays "Inc" again, I think it's not correct that the text is selected. The cursor should be after the typed text and no selection at all. The respective text hasn't been selected before so there's no reason it should be selected now.

Comments (2)

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

Hi Timo,

Thanks for reporting this.  We'll fix it for the 2013.2 version.


Actipro Software Support

Answer - Posted 6 years ago by Emil Stefanov
Avatar

I actually encountered this myself too and implemented a workaround. You can watch for the completion undo events and set the caret's position to the end of the selection.

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.