Skip to content

Resolve #1293 - Partial fix for incorrect caret position after Undo (#1295)#1295

Merged
Jugen merged 2 commits intoFXMisc:masterfrom
Symeon94:1293-undo-utils-fix
Nov 19, 2025
Merged

Resolve #1293 - Partial fix for incorrect caret position after Undo (#1295)#1295
Jugen merged 2 commits intoFXMisc:masterfrom
Symeon94:1293-undo-utils-fix

Conversation

@Symeon94
Copy link
Copy Markdown
Collaborator

Concerns

Issue with this is that we cannot really fix the original issue without causing major impact to all users.

Instead this is a simple fix in UndoUtils along with a lot of UT and some refactoring of the TextChange structure.

Limitations

It seems that the code to merge changes has some cases that are not correct. UT were created to cover the existing behaviour, even when that behaviour seemed incorrect or incomplete.

@Jugen Jugen changed the title Resolve #1293 - Only the UndoUtils change Resolve #1293 - Partial fix for incorrect caret position after Undo (#1295) Nov 19, 2025
@Jugen Jugen merged commit 5839e47 into FXMisc:master Nov 19, 2025
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.

2 participants