Completion and undo/redo

SyntaxEditor for WPF Forum

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


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 8 years ago by Actipro Software Support - Cleveland, OH, USA


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 (v22.1.3) was released 23 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.