diff options
Diffstat (limited to 'tui/widget/widget.ha')
| -rw-r--r-- | tui/widget/widget.ha | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tui/widget/widget.ha b/tui/widget/widget.ha index f7dc511..9167e65 100644 --- a/tui/widget/widget.ha +++ b/tui/widget/widget.ha @@ -1,4 +1,4 @@ -use tui; +se tui; use fmt; use unix::tty; use io; @@ -185,7 +185,10 @@ export fn print(w: *widget) void = { yield strings::dup(sstyle[i]); }; defer free(line); - memio::concat(&st, line, NEWLINE)!; + memio::concat(&st, line)!; + if (i < len(sstyle) - 1) { + memio::concat(&st, NEWLINE)!; + }; }; const joined = memio::string(&st)!; |
