We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e153d9f commit d8e495bCopy full SHA for d8e495b
lua/nvim-tree/actions/finders/find-file.lua
@@ -44,8 +44,10 @@ function M.fn(path)
44
return node.absolute_path == path_real or node.link_to == path_real
45
end)
46
:applier(function(node)
47
+ local incremented_line = false
48
if not node.group_next then
49
line = line + 1
50
+ incremented_line = true
51
end
52
53
if vim.tbl_contains(absolute_paths_searched, node.absolute_path) then
@@ -62,6 +64,9 @@ function M.fn(path)
62
64
63
65
if #node.nodes == 0 then
66
core.get_explorer():expand(node)
67
+ if node.group_next and incremented_line then
68
+ line = line - 1
69
+ end
70
71
72
0 commit comments