Skip to content

Commit 2d6b82f

Browse files
committed
fix: invalid window id for popup info window
1 parent d87b41c commit 2d6b82f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/actions/node/file-popup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ local function setup_window(node)
5656
end
5757

5858
function M.close_popup()
59-
if current_popup ~= nil then
59+
if current_popup ~= nil and vim.api.nvim_win_is_valid(current_popup.winnr) then
6060
vim.api.nvim_win_close(current_popup.winnr, true)
6161
vim.cmd("augroup NvimTreeRemoveFilePopup | au! CursorMoved | augroup END")
6262

0 commit comments

Comments
 (0)