diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-18 21:22:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-18 21:22:46 +0800 |
commit | 5d03060743da195ad2942201eed16708377c1a43 (patch) | |
tree | 20fef943a0ce4eb8a15e74db6352b9b955b1f26e /test/functional/lua | |
parent | 4c2d14a3706b84511b7fce1b4bd3452f2093583e (diff) | |
download | rneovim-5d03060743da195ad2942201eed16708377c1a43.tar.gz rneovim-5d03060743da195ad2942201eed16708377c1a43.tar.bz2 rneovim-5d03060743da195ad2942201eed16708377c1a43.zip |
test(lua/hl_spec): fix hang on exit with ASAN (#32508)
Diffstat (limited to 'test/functional/lua')
-rw-r--r-- | test/functional/lua/hl_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/lua/hl_spec.lua b/test/functional/lua/hl_spec.lua index d88d30b8f6..27629cf214 100644 --- a/test/functional/lua/hl_spec.lua +++ b/test/functional/lua/hl_spec.lua @@ -184,6 +184,10 @@ describe('vim.hl.on_yank', function() eq({ win }, api.nvim__ns_get(ns).wins) command('wincmd w') eq({ win }, api.nvim__ns_get(ns).wins) + -- Use a new vim.hl.range() call to cancel the previous timer + exec_lua(function() + vim.hl.range(0, ns, 'Search', { 0, 0 }, { 0, 0 }, { timeout = 0 }) + end) end) it('removes old highlight if new one is created before old one times out', function() @@ -205,5 +209,9 @@ describe('vim.hl.on_yank', function() eq({ win }, api.nvim__ns_get(ns).wins) command('wincmd w') eq({ win }, api.nvim__ns_get(ns).wins) + -- Use a new vim.hl.range() call to cancel the previous timer + exec_lua(function() + vim.hl.range(0, ns, 'Search', { 0, 0 }, { 0, 0 }, { timeout = 0 }) + end) end) end) |