replit/codemirror-emacs

Cursor can be incorrectly placed past the end of a wrapped line, leading to "flashing" wrong character

Closed this issue · 0 comments

Clicking in the space at the end of a wrapped line will place the cursor "past" the end of the line. The cursor will then "flash" the next character of the wrapped line:

Kapture.2022-08-01.at.12.30.39.mp4

Minimal reproduction in this CodeSandbox.

I believe this is linked to this codemirror-vim bug. As mentioned in my comment there, it looks like since the cursor shouldn't be allowed there it's miscalculating which character to flash.