FXMisc / UndoFX

Undo manager for JavaFX
BSD 2-Clause "Simplified" License
98 stars 17 forks source link

mark(); isAtMarkedPosition(); issue #20

Open TheAndreiM opened 7 years ago

TheAndreiM commented 7 years ago

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.

TomasMikula commented 7 years ago

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.