diff options
| -rw-r--r-- | cmd/il.ha | 2 | ||||
| -rw-r--r-- | tui/widget/list/list.ha | 2 | ||||
| -rw-r--r-- | tui/widget/widget.ha | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -61,7 +61,7 @@ export fn main() void = { let items: []str = []; for (let line: const str => bufio::scan_line(&scanner)!) { - append(items, strings::dup(line)); + append(items, strings::dup(line))!; }; defer strings::freeall(items); diff --git a/tui/widget/list/list.ha b/tui/widget/list/list.ha index 1d970ea..0e9f272 100644 --- a/tui/widget/list/list.ha +++ b/tui/widget/list/list.ha @@ -233,7 +233,7 @@ export fn mark(li: *list) bool = { delete(li.marked[s]); return false; case void => - append(li.marked, li.cursor); + append(li.marked, li.cursor)!; return true; }; }; diff --git a/tui/widget/widget.ha b/tui/widget/widget.ha index 9da7525..9167e65 100644 --- a/tui/widget/widget.ha +++ b/tui/widget/widget.ha @@ -247,7 +247,7 @@ fn truncate_to_size(w: *widget) []str = { const s = if (tui::strwidth(line) > wsz.columns) tui::subwidth(line, wsz.columns) else line; yield strings::dup(s); }; - append(lines, item); + append(lines, item)!; //fmt::println(item)!; }; return lines; @@ -272,7 +272,7 @@ fn border(s: []str) []str = { yield si; }; - append(lines, si); + append(lines, si)!; }; return lines; }; |
