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 09a5126 commit d9edddbCopy full SHA for d9edddb
lua/nvim-tree/view.lua
@@ -188,11 +188,11 @@ function M.close()
188
local current_win = a.nvim_get_current_win()
189
for _, win in pairs(a.nvim_list_wins()) do
190
if tree_win ~= win and a.nvim_win_get_config(win).relative == "" then
191
- a.nvim_win_close(tree_win, true)
192
local prev_win = vim.fn.winnr "#" -- this tab only
193
if tree_win == current_win and prev_win > 0 then
194
a.nvim_set_current_win(vim.fn.win_getid(prev_win))
195
end
+ a.nvim_win_close(tree_win, true)
196
events._dispatch_on_tree_close()
197
return
198
0 commit comments