From a94f5bf77643d65ff22b0cecbcb59d4a1f9254aa Mon Sep 17 00:00:00 2001 From: Andreas Bissinger Date: Tue, 26 Apr 2022 21:10:27 +0200 Subject: [PATCH] fix: correct line when moving in tree (#1200) --- lua/nvim-tree/actions/movements.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/lua/nvim-tree/actions/movements.lua b/lua/nvim-tree/actions/movements.lua index a9009b64..6df365e8 100644 --- a/lua/nvim-tree/actions/movements.lua +++ b/lua/nvim-tree/actions/movements.lua @@ -98,9 +98,6 @@ function M.sibling(direction) local target_node = parent.nodes[index] line, _ = get_line_from_node(target_node)(core.get_explorer().nodes, true) - if not view.is_root_folder_visible(core.get_cwd()) then - line = line - 1 - end view.set_cursor { line, 0 } end end