Skip to content

Commit 2457e14

Browse files
committed
fix: do not crash file-popup when node is root dir
1 parent 5af3cfa commit 2457e14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ function M.close_popup()
5757
end
5858

5959
function M.toggle_file_info(node)
60+
if node.name == ".." then
61+
return
62+
end
6063
if current_popup ~= nil then
6164
local is_same_node = current_popup.file_path == node.absolute_path
6265

0 commit comments

Comments
 (0)