We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9914780 commit 11b5248Copy full SHA for 11b5248
lua/nvim-tree/actions/node/open-file.lua
@@ -168,9 +168,10 @@ end
168
-- This is only to avoid the BufEnter for nvim-tree to trigger
169
-- which would cause find-file to run on an invalid file.
170
local function set_current_win_no_autocmd(winid)
171
- vim.cmd "set ei=BufEnter"
+ local eventignore = vim.opt.eventignore:get()
172
+ vim.opt.eventignore:append "BufEnter"
173
api.nvim_set_current_win(winid)
- vim.cmd 'set ei=""'
174
+ vim.opt.eventignore = eventignore
175
end
176
177
local function open_in_new_window(filename, mode, win_ids)
0 commit comments