diff options
author | Casper Andersson <casper.casan@gmail.com> | 2022-10-04 09:58:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 09:58:51 +0200 |
commit | 7aed8551bb199f9aae6ceca4a015f0d2576007c8 (patch) | |
tree | 78956f73bb8c035573778cb418dca6045872d389 /completions/git@git.thomasvoss.com:center | |
parent | 4cf46a797145b378dc543346403d54b72b9d2a83 (diff) |
Add centering by longest line (#3)
Centering by longest line requires inputting all lines before starting
output, to determine which is longest. Use a tail queue for this to
insert at end and then iterate from start. The lines are freed after
being output.
Unlike the static read buffer, we can't reuse the list buffers in an
easy way if we are iterating over multiple input files. So they need to
be freed to avoid memory leaks.
Diffstat (limited to 'completions/git@git.thomasvoss.com:center')
0 files changed, 0 insertions, 0 deletions