Skip to content

Commit

Permalink
fix(fzf-tmux): ts cache nil check (closes #1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 7, 2024
1 parent a569876 commit e9f87c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/fzf-lua/win.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ function TSInjector.deregister()
end

function TSInjector.clear_cache(buf, noassert)
-- If called from fzf-tmux buf will be `nil` (#1556)
if not buf then return end
TSInjector.cache[buf] = nil
assert(noassert or utils.tbl_isempty(TSInjector.cache))
end
Expand Down

0 comments on commit e9f87c6

Please sign in to comment.