diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2025-03-20 10:09:25 +0100 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2025-03-20 10:09:25 +0100 |
| commit | 5482d95638470f129fbb0dfc92176f4b296f389e (patch) | |
| tree | 844a8c023f75484828d47d769799b47cfb05c221 | |
| parent | 1ccf126402a30b9da964dde47892f53755ddc8b3 (diff) | |
| download | hare-tui-5482d95638470f129fbb0dfc92176f4b296f389e.tar.gz | |
Handle nomem
| -rw-r--r-- | tui/widget/widget.ha | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tui/widget/widget.ha b/tui/widget/widget.ha index 6c7ec7b..be6c255 100644 --- a/tui/widget/widget.ha +++ b/tui/widget/widget.ha @@ -241,7 +241,7 @@ fn truncate_to_size(w: *widget) []str = { const s = if (len(line) > wsz.columns) strings::sub(line, 0z, wsz.columns) else line; yield strings::dup(s); }; - append(lines, item); + append(lines, item)!; //fmt::println(item)!; }; return lines; @@ -266,7 +266,7 @@ fn border(s: []str) []str = { yield si; }; - append(lines, si); + append(lines, si)!; }; return lines; }; |
