diff options
author | phanium <91544758+phanen@users.noreply.github.com> | 2025-04-06 06:56:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 15:56:40 -0700 |
commit | 28e819018520a2300eaeeec6794ffcd614b25dd2 (patch) | |
tree | afebd1fb4d3f8d98b09561dd5d555dcfc614ee95 /test/functional/lua/hl_spec.lua | |
parent | f9dec1228d1741859a89b64de7ac9765f12c2d3d (diff) | |
download | rneovim-28e819018520a2300eaeeec6794ffcd614b25dd2.tar.gz rneovim-28e819018520a2300eaeeec6794ffcd614b25dd2.tar.bz2 rneovim-28e819018520a2300eaeeec6794ffcd614b25dd2.zip |
fix(vim.hl): nvim_buf_del_extmark on invalid buffer #33331
Problem:
nvim_buf_del_extmark error if buffer is destroyed before timer stops
Solution:
check nvim_buf_is_valid.
Diffstat (limited to 'test/functional/lua/hl_spec.lua')
-rw-r--r-- | test/functional/lua/hl_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/lua/hl_spec.lua b/test/functional/lua/hl_spec.lua index f17442912a..a63b004456 100644 --- a/test/functional/lua/hl_spec.lua +++ b/test/functional/lua/hl_spec.lua @@ -222,6 +222,7 @@ describe('vim.hl.on_yank', function() it('does not show errors even if buffer is wiped before timeout', function() command('new') + n.feed('ifoo<esc>') -- set '[, '] exec_lua(function() vim.hl.on_yank({ timeout = 10, |