Skip to content

md: simplify left/right arrow navigation#4211

Merged
tvanderstad merged 3 commits intomasterfrom
md-list-capture
Feb 11, 2026
Merged

md: simplify left/right arrow navigation#4211
tvanderstad merged 3 commits intomasterfrom
md-list-capture

Conversation

@tvanderstad
Copy link
Copy Markdown
Contributor

@tvanderstad tvanderstad commented Feb 11, 2026

  • removes a concept of paragraphs from the previous editor implementation
  • fixes an issue where the cursor wouldn't respond to left/right arrows, such as at the end of:
    * x
      |

This change has the usual high risk of a foundational editor cleanup. It was QA'd on macOS and iOS but internal dogfooding is also recommended before release.

This change causes triple-tapping a text location to select the whole source line, which can include/reveal bulleted list items, which could be considered a feature or a bug.

Comment on lines +19 to +30
Advance::By(Increment::Char) => {
let mut result = offset;
if backwards {
if result.0 > 0 {
result -= 1;
}
} else {
result += 1;
result = result.min(self.buffer.current.segs.last_cursor_position());
}
result
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The simplification, in a nutshell

@tvanderstad tvanderstad merged commit 7d33775 into master Feb 11, 2026
1 check passed
@tvanderstad tvanderstad deleted the md-list-capture branch February 11, 2026 19:53
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