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

Use char level diff for Rewrap action for cursor preservation + not reinserting all text #20368

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Nov 7, 2024

Closes #18896

Release Notes:

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 7, 2024
@mgsloan mgsloan requested review from maxdeviant and removed request for maxdeviant November 7, 2024 17:07
@mgsloan mgsloan force-pushed the rewrap-preserve-cursors branch 2 times, most recently from d4bba83 to b7b9b43 Compare November 12, 2024 05:13
…einserting all text

Line level diff is still used for vim rewrap because it causes the
cursor behavior to match vim. It would be better to use char-level
diff and explicitly implement the vim cursor behavior
@mgsloan mgsloan merged commit ab20681 into main Nov 12, 2024
11 checks passed
@mgsloan mgsloan deleted the rewrap-preserve-cursors branch November 12, 2024 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrap shouldn't move cursor to end of paragraph
1 participant