fix: do not crash file-popup when node is root dir
This commit is contained in:
@@ -57,6 +57,9 @@ function M.close_popup()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function M.toggle_file_info(node)
|
function M.toggle_file_info(node)
|
||||||
|
if node.name == ".." then
|
||||||
|
return
|
||||||
|
end
|
||||||
if current_popup ~= nil then
|
if current_popup ~= nil then
|
||||||
local is_same_node = current_popup.file_path == node.absolute_path
|
local is_same_node = current_popup.file_path == node.absolute_path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user