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,
|
||||
0,
|
||||
vim.schedule_wrap(function()
|
||||
t:close()
|
||||
if timer == t then
|
||||
timer = nil
|
||||
t:close()
|
||||
end
|
||||
highlight_buffer(bufnr)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue