We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d33cf commit c2d9b86Copy full SHA for c2d9b86
1 file changed
lua/fzf-lua/win.lua
@@ -948,8 +948,8 @@ function FzfWin:set_winleave_autocmd()
948
end
949
950
function FzfWin:treesitter_detach(buf)
951
- TSInjector.clear_cache(buf)
952
TSInjector.deregister()
+ TSInjector.clear_cache(buf)
953
954
955
function FzfWin:treesitter_attach()
@@ -962,6 +962,8 @@ function FzfWin:treesitter_attach()
962
963
vim.api.nvim_buf_attach(self.fzf_bufnr, false, {
964
on_lines = function(_, bufnr)
965
+ -- Called after `:close` triggers an attach after clear_cache (#2322)
966
+ if self.closing then return end
967
local lines = api.nvim_buf_get_lines(bufnr, 0, -1, false)
968
local regions = {}
969
local empty_regions = {}
0 commit comments