mirror of
https://github.com/neovim/neovim.git
synced 2026-05-03 04:25:03 +00:00
test(lua/hl_spec): fix hang on exit with ASAN (#32508)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user