Fixed tree rendering.
h3rald h3rald@h3rald.com
Sat, 31 Mar 2018 16:26:34 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
lib/messaging.nim
→
lib/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