Fix vertical cursor movement at wrap boundaries #80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-vertical-cursor-wrap-boundary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
assoccould resolve the head position to the wrong visual line, causing the selection to not move or overshoot. This tries the alternate assoc and picks the result with minimal forward progress.posAtCoordsto find the position at the goal X on the first/last line during vertical motion, instead of ignoring X and returning position 0 ordoc.length.lineHeightinstead oftextHeightfor the vertical step distance, and adds a fallback to the document boundary whenposAtCoordsreturns the same position (so select commands can extend to start/end).Test plan
codemirror/commandsnode bin/cm.js testin the dev monorepo (all tests pass, only pre-existing bidi failures remain)🤖 Generated with Claude Code
Pull request closed