You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. launch SyntaxTester
2. press ctrl-z
What is the expected output? What do you see instead?
Expected: no action, the original text is the initial state to the user
Actual: the editor becomes empty, which is the initial state to the code
I think SyntaxDocument/SyntaxKit should call
CompoundUndoManager.discardAllEdits() at the right time, or there needs to
be a public method in SyntaxDocument so the client can clear edits when
they choose.
Original issue reported on code.google.com by javlo...@gmail.com on 14 Aug 2008 at 3:07
The text was updated successfully, but these errors were encountered:
The problem is that the setText on the control gets translated to a remove
followed
by insert on the document. At that level, I have no way of knowing if that was
a
setText at either method. It will be bug prone if a state is maintained
between the
two methods just to see if a setText was called.
For that, I added a method to the Document to discard all undo. This will be
withe
other changes I'm working on right now.
Original comment by ayman.al...@gmail.com on 17 Aug 2008 at 6:58
Original issue reported on code.google.com by
javlo...@gmail.com
on 14 Aug 2008 at 3:07The text was updated successfully, but these errors were encountered: