aboutsummaryrefslogtreecommitdiff
path: root/completions/git@git.thomasvoss.com:center
diff options
context:
space:
mode:
authorCasper Andersson <casper.casan@gmail.com> 2022-10-04 09:58:51 +0200
committerGitHub <noreply@github.com> 2022-10-04 09:58:51 +0200
commit7aed8551bb199f9aae6ceca4a015f0d2576007c8 (patch)
tree78956f73bb8c035573778cb418dca6045872d389 /completions/git@git.thomasvoss.com:center
parent4cf46a797145b378dc543346403d54b72b9d2a83 (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