From 2457e141ae5c2e9c5d94a9550b37b421d25cfff1 Mon Sep 17 00:00:00 2001 From: kiyan Date: Wed, 9 Mar 2022 23:07:31 +0100 Subject: [PATCH] fix: do not crash file-popup when node is root dir --- lua/nvim-tree/actions/file-popup.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/nvim-tree/actions/file-popup.lua b/lua/nvim-tree/actions/file-popup.lua index 910ab11e..dcd47dd9 100644 --- a/lua/nvim-tree/actions/file-popup.lua +++ b/lua/nvim-tree/actions/file-popup.lua @@ -57,6 +57,9 @@ function M.close_popup() end function M.toggle_file_info(node) + if node.name == ".." then + return + end if current_popup ~= nil then local is_same_node = current_popup.file_path == node.absolute_path