all repos — nifty @ 6cb5b66449ed58d390ab8b82cd8e6857932d79c4

A tiny (pseudo) package manager and script runner.

Fixed tree rendering.
h3rald h3rald@h3rald.com
Sat, 31 Mar 2018 16:26:34 +0200
commit

6cb5b66449ed58d390ab8b82cd8e6857932d79c4

parent

da199368451e6ed4d29610ee20b3fb8e08343921

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M lib/messaging.nimlib/messaging.nim

@@ -92,7 +92,7 @@ let newPrefix = prefix & prefixPart & " "

let lastPart = if last: ch("└") else: ch("├") let morePart = if more: ch("┬") else: ch("─") let rec = tree(x, newPrefix) - var offset = 3 + var offset = if ch("└").len > 1: 3 else: 1 var endSpace = "" if lastPart == ch("└"): offset = 2