Skip to content

Conversation

@thecoolwinter
Copy link
Contributor

Description

Updates the undo manager to update the text selection when undoing/redoing.

Two cases:

  • Replaced/Inserted text - selects the inserted text
  • Deleted text - Places cursor at the start of the deleted text, as if the user had just deleted it.

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

Screen.Recording.2025-06-18.at.2.40.18.PM.mov

@thecoolwinter thecoolwinter changed the title Fix/undo select text Select Undone/Redone Text Jun 18, 2025
@thecoolwinter thecoolwinter merged commit 7d63a64 into CodeEditApp:main Jun 18, 2025
2 checks passed
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.

✨ Restore Cursor and Scroll Position on Undo/Redo

1 participant