UndoFX icon indicating copy to clipboard operation
UndoFX copied to clipboard

mark(); isAtMarkedPosition(); issue

Open TheAndreiM opened this issue 7 years ago • 1 comments

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.

TheAndreiM avatar May 23 '17 13:05 TheAndreiM

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.

TomasMikula avatar May 26 '17 06:05 TomasMikula