Skip to content

md: fix advance by line when text wraps on non-whitespace#4262

Merged
tvanderstad merged 1 commit intomasterfrom
md-cursor-stuck
Mar 12, 2026
Merged

md: fix advance by line when text wraps on non-whitespace#4262
tvanderstad merged 1 commit intomasterfrom
md-cursor-stuck

Conversation

@tvanderstad
Copy link
Copy Markdown
Contributor

Fixes handling of wrap lines when navigating with up and down arrows or cmd+left/right. Wrap line spans were allowed to touch, meaning when a line wrapped, the start of one line was the same as the end of the previous. Sometimes, advancing up a line would put you at the end of that line, which would put you at the start of the current line, which would not advance you at all. cmd+left/right had related issues where they would detect you to be on the wrong line and advance you to the wrong place on account of that.

@tvanderstad tvanderstad merged commit 14fef83 into master Mar 12, 2026
1 check passed
@tvanderstad tvanderstad deleted the md-cursor-stuck branch March 12, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant