I am experimenting with mark(); and isAtMarkedPosition();
I type in some text let's say word "hello" and set the mark(); position at that point.
When I type an extra character (it takes me to a different step) and do control+z to undo, the isAtMarkedPosition() returns false (it should be returning true). Also, when I type in a character and remove that character, then it also isAtMarkedPosition() returns false. The only time when isAtMarkedPosition(); returns false is when you type in "hello", mark();, and then do undo (control + z) and then do redo (control+shift+z). In all other cases, it returns false.
Thanks for reporting. It would be nice if you could create a self-contained example (using only UndoFX, no RichTextFX or other libraries) that I could then add to unit tests.
Hello,
I am experimenting with mark(); and isAtMarkedPosition();
I type in some text let's say word "hello" and set the mark(); position at that point. When I type an extra character (it takes me to a different step) and do control+z to undo, the isAtMarkedPosition() returns false (it should be returning true). Also, when I type in a character and remove that character, then it also isAtMarkedPosition() returns false. The only time when isAtMarkedPosition(); returns false is when you type in "hello", mark();, and then do undo (control + z) and then do redo (control+shift+z). In all other cases, it returns false.