vscode-neovim / vscode-neovim

Vim mode for VSCode, powered by Neovim
https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim
MIT License
6.04k stars 205 forks source link

bug: phantom cursor after deleting line #2117

Open indesperate opened 2 months ago

indesperate commented 2 months ago

Check the following:

Neovim version (nvim -v)

0.10.0

Operating system/version

Archlinux

Describe the bug

When using d to delete multi-lines in visual mode, the cursor is not rendered correctly. This is a rendering issue, and it works OK before 1.70.0.

Steps To Reproduce

For example see: Before deleting image After deleting image

Expected Behavior

The cursor should not render

xiyaowong commented 2 months ago

Not sure what's going on. Sometimes the received UI events are incorrect.

There is an easy way to reproduce this: visually select a few lines, scroll them out of view with the mouse, and then press delete.


@indesperate You can add this autocmd to automatically redraw and bypass this issue.

au CursorHold * silent! mode
indesperate commented 2 months ago

Not sure what's going on. Sometimes the received UI events are incorrect. There is an easy way to reproduce this: visually select a few lines, scroll them out of view with the mouse, and then press delete.

@indesperate You can add this autocmd to automatically redraw and bypass this issue.

au CursorHold * silent! mode

Thank you for the reply. Maybe let's leave this issue open for a future fix?