summaryrefslogtreecommitdiff
path: root/tui/widget/widget.ha
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst@digdash.com>2025-03-25 14:28:27 +0100
committerJulian Hurst <julian.hurst@digdash.com>2025-03-25 14:28:27 +0100
commit3e7d23ed8bc9afc4a28b03e64a0a49d928b619d2 (patch)
tree012ae05834607518be237eced8b3edb1e9bf053d /tui/widget/widget.ha
parent88d4ab2cb91d0bf6e599c8ccd937c4aa2c9f5ce6 (diff)
parent97d55df16cbc076183c65f2041aaff184b586239 (diff)
downloadhare-tui-3e7d23ed8bc9afc4a28b03e64a0a49d928b619d2.tar.gz
Merge branch 'master' into nomem
Diffstat (limited to 'tui/widget/widget.ha')
-rw-r--r--tui/widget/widget.ha7
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)!;