codemirror-vim icon indicating copy to clipboard operation
codemirror-vim copied to clipboard

@codemirror/view 6.39.x breaks codemirror-vim `moveByDisplayLine`

Open jsbeckr opened this issue 1 month ago • 0 comments

After a horrible two days of debugging, I finally found the problem for my input issues.

Problem

When using gj or <C-d> on a blank line at the bottom of the document, the cursor would wrap around to the top. Only a minor inconvenience, but it triggered my perfectionism.

Workaround

Pin @codemirror/view at version 6.38.8. Everything above that will result in the described behavior.

Fix

I'm not sure if it's a regression in codemirror or if it's something codemirror-vim should fix.

Just happy I finally found the problem.

jsbeckr avatar Dec 16 '25 15:12 jsbeckr