fix(#2154): find_file doesn't work when group_empty option is enabled (#2100)

Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
Zhanibek Adilbekov
2023-04-29 13:03:20 +06:00
committed by GitHub
parent 74996b8626
commit d8b154c5f0
8 changed files with 28 additions and 16 deletions

View File

@@ -36,7 +36,7 @@ function M.fn(keep_buffers)
end
end)
:recursor(function(n)
return n.nodes
return n.group_next and { n.group_next } or n.nodes
end)
:iterate()