diff options
| author | glepnir <glephunter@gmail.com> | 2026-01-10 13:49:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-10 05:49:46 +0000 |
| commit | 63cbc95d45173e9dd59c096307ca826de855491d (patch) | |
| tree | a3f960e805c71d43f74baf0eb4177422a14aafac /test/functional/vimscript/executable_spec.lua | |
| parent | cb77bd1b861aa4cb0c99c01efeb26e790263e219 (diff) | |
| download | rneovim-63cbc95d45173e9dd59c096307ca826de855491d.tar.gz rneovim-63cbc95d45173e9dd59c096307ca826de855491d.tar.bz2 rneovim-63cbc95d45173e9dd59c096307ca826de855491d.zip | |
fix(api): nvim_set_current_win doesn't reset Visual mode (#37340)
Problem:
Using nvim_set_current_win() to switch windows while in Visual mode
causes E315 ml_get error when target buffer has fewer lines. This
doesn't happen with `:wincmd w` since it properly resets Visual mode
when switching buffers.
Solution:
Reset Visual mode when switching to another buffer, like `:wincmd w`.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions