Skip to content

Commit 7943df0

Browse files
authored
fix(filesystem): fix get_folder_node logic (#738)
fixes #737
1 parent c37f531 commit 7943df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/sources/common/commands.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ local function get_folder_node(state)
3939
end
4040

4141
local parent_id = node:get_parent_id()
42-
if parent_id or parent_id == last_id then
42+
if not parent_id or parent_id == last_id then
4343
return node
4444
else
4545
last_id = parent_id

0 commit comments

Comments
 (0)