fix race condition
This commit is contained in:
parent
d7537e93d0
commit
851cdb0214
1 changed files with 1 additions and 1 deletions
|
|
@ -101,9 +101,9 @@ local function create_debounced_highlight(bufnr)
|
||||||
config.debounce_ms,
|
config.debounce_ms,
|
||||||
0,
|
0,
|
||||||
vim.schedule_wrap(function()
|
vim.schedule_wrap(function()
|
||||||
t:close()
|
|
||||||
if timer == t then
|
if timer == t then
|
||||||
timer = nil
|
timer = nil
|
||||||
|
t:close()
|
||||||
end
|
end
|
||||||
highlight_buffer(bufnr)
|
highlight_buffer(bufnr)
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue