Closed GoogleCodeExporter closed 9 years ago
I like the second approach. I also think when you call the setText on a
control, all
undos should be discarded.
Original comment by ayman.al...@gmail.com
on 14 Aug 2008 at 5:53
I like the second approach. I also think when you call the setText on a
control, all
undos should be discarded.
Original comment by ayman.al...@gmail.com
on 14 Aug 2008 at 5:55
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
clearUndos method added to SyntaxDocument.
Original comment by ayman.al...@gmail.com
on 28 Sep 2008 at 9:28
Original issue reported on code.google.com by
javlo...@gmail.com
on 14 Aug 2008 at 3:07