aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/range.lua
diff options
context:
space:
mode:
authornot_compiled <dhananjayjokes@gmail.com>2026-08-17 08:46:11 +0530
committerGitHub <noreply@github.com>2026-08-17 11:16:11 +0800
commit8c0bf183745928f71fbd58f4b73afafbd6a045d4 (patch)
tree65203565358db5d50663caad87bac3267f9d3126 /runtime/lua/vim/range.lua
parent581ce0b3dad3d8dcb7fdfd872f2d447f6c75dc1c (diff)
downloadrneovim-8c0bf183745928f71fbd58f4b73afafbd6a045d4.tar.gz
rneovim-8c0bf183745928f71fbd58f4b73afafbd6a045d4.tar.bz2
rneovim-8c0bf183745928f71fbd58f4b73afafbd6a045d4.zip
fix(spell): avoid invalid window state after async spell select (#41346)
Problem: When `z=` delegates to `vim.ui.select()`, the picker may change the current window before returning. `spell_suggest()` then continues to the cursor restoration branch with the new window and assigns `prev_cursor`, which belongs to the original window. This can leave Normal mode with an invalid cursor position and produce E315. Solution: Clean up the spell suggestion state and return immediately after handing control to `vim.ui.select()`.
Diffstat (limited to 'runtime/lua/vim/range.lua')
0 files changed, 0 insertions, 0 deletions