From 851cdb02145f106e5f2ec1af530a7a301a58afc9 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Mon, 2 Feb 2026 01:00:40 -0500 Subject: [PATCH] fix race condition --- lua/fugitive-ts/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/fugitive-ts/init.lua b/lua/fugitive-ts/init.lua index 37e129c..bc965d4 100644 --- a/lua/fugitive-ts/init.lua +++ b/lua/fugitive-ts/init.lua @@ -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)