Skip to content

fix: advance cursor during cmd-transpose#2413

Merged
joelim-work merged 2 commits intogokcehan:masterfrom
joelim-work:fix-cmd-transpose
Mar 4, 2026
Merged

fix: advance cursor during cmd-transpose#2413
joelim-work merged 2 commits intogokcehan:masterfrom
joelim-work:fix-cmd-transpose

Conversation

@joelim-work
Copy link
Collaborator

The cmd-transpose command should advance the cursor after swapping characters, similar to how GNU Readline works:

transpose-chars (C-t)
Drag the character before point forward over the character
at point, moving point forward as well. If point is at the
end of the line, then this transposes the two characters
before point. Negative arguments have no effect.

The implementation has also been changed to handle entire grapheme clusters as well.

@joelim-work joelim-work added the fix Pull requests that fix existing behavior label Mar 4, 2026
@joelim-work joelim-work added this to the r42 milestone Mar 4, 2026
@joelim-work joelim-work merged commit 0bbeae7 into gokcehan:master Mar 4, 2026
32 checks passed
@joelim-work joelim-work deleted the fix-cmd-transpose branch March 4, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull requests that fix existing behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant