We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 224854c commit e360a32Copy full SHA for e360a32
lua/nvim-tree/view.lua
@@ -193,7 +193,7 @@ local function close(tabpage)
193
local tree_win = M.get_winnr(tabpage)
194
local current_win = vim.api.nvim_get_current_win()
195
for _, win in pairs(vim.api.nvim_tabpage_list_wins(tabpage)) do
196
- if tree_win ~= win and vim.api.nvim_win_get_config(win).relative == "" then
+ if vim.api.nvim_win_get_config(win).relative == "" then
197
local prev_win = vim.fn.winnr "#" -- this tab only
198
if tree_win == current_win and prev_win > 0 then
199
vim.api.nvim_set_current_win(vim.fn.win_getid(prev_win))
0 commit comments