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 d87b41c commit 2d6b82fCopy full SHA for 2d6b82f
lua/nvim-tree/actions/node/file-popup.lua
@@ -56,7 +56,7 @@ local function setup_window(node)
56
end
57
58
function M.close_popup()
59
- if current_popup ~= nil then
+ if current_popup ~= nil and vim.api.nvim_win_is_valid(current_popup.winnr) then
60
vim.api.nvim_win_close(current_popup.winnr, true)
61
vim.cmd("augroup NvimTreeRemoveFilePopup | au! CursorMoved | augroup END")
62
0 commit comments