Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mark(); isAtMarkedPosition(); issue #20

Open
TheAndreiM opened this issue May 23, 2017 · 1 comment
Open

mark(); isAtMarkedPosition(); issue #20

TheAndreiM opened this issue May 23, 2017 · 1 comment

Comments

@TheAndreiM
Copy link

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants