fix: do not crash file-popup when node is root dir

This commit is contained in:
kiyan
2022-03-09 23:07:31 +01:00
parent 5af3cfa170
commit 2457e141ae

View File

@@ -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