Skip to content

Commit

Permalink
fix(util): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 27, 2024
1 parent 231c0a8 commit 1ded551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function M.throttle(fn, opts)
vim.schedule(function()
xpcall(function()
local _args = vim.F.unpack_len(args)
if not trailing then
-- FIXME:
if not trailing and not timer:is_active() then
args = {} -- clear args so they can be gc'd
end
Expand Down

0 comments on commit 1ded551

Please sign in to comment.