Skip to content

Commit

Permalink
fix: clear treesitter cache of hidden win (closes #1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 18, 2024
1 parent 80590ef commit 691c392
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/fzf-lua/win.lua
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ function FzfWin:new(o)
elseif _self and _self:hidden() then
-- Clear the hidden buffers
vim.api.nvim_buf_delete(_self._hidden_fzf_bufnr, { force = true })
TSInjector.clear_cache(_self._hidden_fzf_bufnr)
_self = nil
end
o = o or {}
Expand Down

0 comments on commit 691c392

Please sign in to comment.