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 75ff64e commit 48b1d86Copy full SHA for 48b1d86
lua/nvim-tree/view.lua
@@ -464,7 +464,7 @@ end
464
function M.get_winnr(tabpage)
465
tabpage = tabpage or vim.api.nvim_get_current_tabpage()
466
local tabinfo = M.View.tabpages[tabpage]
467
- if tabinfo ~= nil and vim.api.nvim_win_is_valid(tabinfo.winnr) then
+ if tabinfo and tabinfo.winnr and vim.api.nvim_win_is_valid(tabinfo.winnr) then
468
return tabinfo.winnr
469
end
470
0 commit comments