fix race condition

This commit is contained in:
Barrett Ruth 2026-02-02 01:00:40 -05:00
parent d7537e93d0
commit 851cdb0214

View file

@ -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)