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

Fix post undo/redo caret position #915

Merged
merged 1 commit into from
Mar 18, 2020
Merged

Fix post undo/redo caret position #915

merged 1 commit into from
Mar 18, 2020

Conversation

Jugen
Copy link
Collaborator

@Jugen Jugen commented Mar 18, 2020

Fixes #912 After undo/redo, new text is inserted at the end.

My initial attempt to fix this involved changing CaretNode and SelectionImpl, but doing so broke the org.fxmisc.richtext.api.caret PositionTests. So instead UndoUtils got hijacked to accomplish the desired behavior.

@Jugen Jugen merged commit c5a7d66 into FXMisc:master Mar 18, 2020
@Jugen Jugen deleted the fix_post_undo_redo_caret_position branch March 18, 2020 12:41
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

Successfully merging this pull request may close these issues.

After undo/redo, new text is inserted at the end
1 participant