File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ local function setup_autocommands(opts)
370
370
if not opts .actions .open_file .quit_on_open then
371
371
create_nvim_tree_autocmd (" BufWipeout" , { pattern = " NvimTree_*" , callback = view ._prevent_buffer_override })
372
372
else
373
- create_nvim_tree_autocmd (" BufWipeout" , { pattern = " NvimTree_*" , callback = view .quit_on_open })
373
+ create_nvim_tree_autocmd (" BufWipeout" , { pattern = " NvimTree_*" , callback = view .abandon_current_window })
374
374
end
375
375
376
376
if opts .hijack_directories .enable then
Original file line number Diff line number Diff line change @@ -284,10 +284,6 @@ function M.abandon_current_window()
284
284
M .View .tabpages [tab ].winnr = nil
285
285
end
286
286
287
- function M .quit_on_open ()
288
- M .abandon_current_window ()
289
- end
290
-
291
287
function M .is_visible (opts )
292
288
if opts and opts .any_tabpage then
293
289
for _ , v in pairs (M .View .tabpages ) do
You can’t perform that action at this time.
0 commit comments