Skip to content

Commit a94f5bf

Browse files
authored
fix: correct line when moving in tree (#1200)
1 parent 62e6f4d commit a94f5bf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lua/nvim-tree/actions/movements.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ function M.sibling(direction)
9898
local target_node = parent.nodes[index]
9999

100100
line, _ = get_line_from_node(target_node)(core.get_explorer().nodes, true)
101-
if not view.is_root_folder_visible(core.get_cwd()) then
102-
line = line - 1
103-
end
104101
view.set_cursor { line, 0 }
105102
end
106103
end

0 commit comments

Comments
 (0)