This commit is contained in:
parent
e153d9f599
commit
d8e495b235
@ -44,8 +44,10 @@ function M.fn(path)
|
|||||||
return node.absolute_path == path_real or node.link_to == path_real
|
return node.absolute_path == path_real or node.link_to == path_real
|
||||||
end)
|
end)
|
||||||
:applier(function(node)
|
:applier(function(node)
|
||||||
|
local incremented_line = false
|
||||||
if not node.group_next then
|
if not node.group_next then
|
||||||
line = line + 1
|
line = line + 1
|
||||||
|
incremented_line = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if vim.tbl_contains(absolute_paths_searched, node.absolute_path) then
|
if vim.tbl_contains(absolute_paths_searched, node.absolute_path) then
|
||||||
@ -62,6 +64,9 @@ function M.fn(path)
|
|||||||
end
|
end
|
||||||
if #node.nodes == 0 then
|
if #node.nodes == 0 then
|
||||||
core.get_explorer():expand(node)
|
core.get_explorer():expand(node)
|
||||||
|
if node.group_next and incremented_line then
|
||||||
|
line = line - 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user