fix(#2392): bookmarks icon placement when group_empty (#2402)

* fix: marks now align with nodes when parent nodes are empty and group_empty option
enabled

* run stylua

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
Tillman Jex
2023-09-09 03:27:15 +02:00
committed by GitHub
parent 51f02366de
commit b856d0a0c3

View File

@@ -63,7 +63,7 @@ function M.draw()
local add = core.get_nodes_starting_line() - 1
Iterator.builder(core.get_explorer().nodes)
:recursor(function(node)
return node.open and node.nodes
return node.group_next and { node.group_next } or (node.open and node.nodes)
end)
:applier(function(node, idx)
if M.get_mark(node) then