
Hi guys,
A quick question: When I perform a ReplaceText operation, like this:
editor.Document.ReplaceText(TextChangeTypes.Custom, property.StartOffset, property.EndOffset - property.StartOffset, newCode);
and then undo it (a simple Ctrl+Z), the original text (replaced by the operation) is selected in the editor, despite the fact that no text was selected before. I'm not sure why, and this is not the behavior of SE for WinForms. I don't do anything else besides the line of code shown above, so you should be able to see the problem easily. Is this some sort of option that I can disable or is it a bug?
[Modified at 01/25/2012 09:50 AM]
A quick question: When I perform a ReplaceText operation, like this:
editor.Document.ReplaceText(TextChangeTypes.Custom, property.StartOffset, property.EndOffset - property.StartOffset, newCode);
and then undo it (a simple Ctrl+Z), the original text (replaced by the operation) is selected in the editor, despite the fact that no text was selected before. I'm not sure why, and this is not the behavior of SE for WinForms. I don't do anything else besides the line of code shown above, so you should be able to see the problem easily. Is this some sort of option that I can disable or is it a bug?
[Modified at 01/25/2012 09:50 AM]