dualfroz aa086f6b53 fix(cursor): keep the visual selection whole over characters outside the BMP
The inclusive Nvim end column was turned into an exclusive VSCode one by
adding a single UTF-16 unit. A character outside the BMP is two of them, so
the selection ended in the middle of a surrogate pair and drifted away from
where Nvim had the cursor: moving right over it took two presses and the
selected region no longer matched.

Step over the whole character instead, using its byte length.

Closes #2535
2026-09-13 15:30:08 +02:00
S
Description
My contributions to vscode-neovim/vscode-neovim: 6 commits, 1 merged PRs
98 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 83.2%
Vim Script 10.5%
Lua 6.3%