Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Undo should not be enabled for first setText #21
I noticed another behaviour which seems strange:
Now when you use it, if you open a GUI which has for example 100 lines, if you hit CTRL +Z then everything is cleaned up. This seems very strange to me.
Is there some method to call to reset UndoManager edits ?
Yes, if you initialize RSTA with text when it is first displayed, just call discardAllEdits() to reset the undo stack. We can't just ignore the first setText() call since it might be done e.g. in response to some UI event, and the user might want it to be undo-able.