fix: only indent a group's body, as github.com does #31
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/indent-one-level"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checklist
Problem
#19 indented one level too many. A step's body was pushed in two columns, which
github.com does not do — the indentation you see under
Run mlugg/setup-zig@…there is the action echoing its own inputs, and those bytes were already being
preserved verbatim. Only a group's body is drawn indented.
It also produced a visible seam. A closed fold is rendered from the string
'foldtext'returns, and neither conceal nor inline virtual text reaches it, soa group heading was flush while closed and two columns in while open:
Solution
Step header, step body and group heading are all flush; only a group's contents
move. Verified closed as well:
The seam closes as a consequence rather than needing its own fix. I first
taught
foldtextto prepend the indent, then found that unreachable: everyline that opens a fold is now depth 0, so the padding could only ever add
zero. Dropped it rather than keep a branch that cannot fire.