Skip to content

Fix wrapped EOF cursor movement#845

Open
MihneaTeodorStoica wants to merge 1 commit intomicrosoft:mainfrom
MihneaTeodorStoica:fix-alt-left-word-wrap
Open

Fix wrapped EOF cursor movement#845
MihneaTeodorStoica wants to merge 1 commit intomicrosoft:mainfrom
MihneaTeodorStoica:fix-alt-left-word-wrap

Conversation

@MihneaTeodorStoica
Copy link
Copy Markdown
Contributor

Summary

  • Fix wrapped cursor measurement lookahead so it stops at EOF instead of inventing an extra visual line.
  • Add a regression test using the attached issue text shape for moving left from wrapped EOF.

Fixes #778

Validation

  • cargo fmt --all -- --check
  • cargo test -p edit cursor_left_from_wrapped_eof_stays_on_text
  • cargo test --all-features --all-targets
  • cargo clippy --all-features --all-targets -- --no-deps --deny warnings
  • cargo check -p edit --target x86_64-pc-windows-msvc
  • cargo clippy -p edit --target x86_64-pc-windows-msvc -- --no-deps --deny warnings
  • git diff --check

@MihneaTeodorStoica MihneaTeodorStoica marked this pull request as ready for review May 2, 2026 08:25
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.

[Alt] + [Leftarrow] at EOF breaks cursor position when word wrap is active, potential freeze

1 participant