Completion and undo/redo

SyntaxEditor for WPF Forum

Posted 9 years ago by Valéry Sablonnière - Staubli
Version: 15.1.0620
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

Hi,

When I type a method name and use the auto complete with Ctrl+Space and I type the parenthesis and arguments then I undo until the whole method is removed and I redo until the whole method is written back if I undo again, the behavior is really strange.

If I don't register the CompletionProvider or the DelimiterAutoCompleter, this bug does not happen.

I can reproduce it with the "SDI Code Editor" sample.

Best regards,

Comments (1)

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

Hello,

Thanks for reporting this.  It appears that the delimiter completion was incorrectly thinking the redo of the '(' typing operation was a user action and thus did another auto-completion, whereas it shouldn't have done that since the next text change in the redo stack was the one where the end ')' was auto-completed.  We've updated our code for the next maintenance release to fix this bug.


Actipro Software Support

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.