Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lua/treesitter-context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ local function throttle_by_id(f)
-- r was called again within throttling period; reschedule it.
waiting[id] = nil
r(id)
else
elseif timers[id] then
if not timers[id]:is_closing() then
timers[id]:stop()
timers[id]:close()
end
-- Done - clean up
timers[id] = nil
end
Expand Down
Loading