diff options
| author | Julian Hurst <julian.hurst92@gmail.com> | 2022-06-18 13:47:00 +0200 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2023-09-07 00:09:04 +0200 |
| commit | cef06072173925008fb5f61762fca5c893316d11 (patch) | |
| tree | 1c2f631f198cfc0efb8ba07986e9d4bfedd04576 | |
| parent | b751405435e7f41837902046a5271c30f720e69a (diff) | |
| download | hare-libtui-cef06072173925008fb5f61762fca5c893316d11.tar.gz | |
Update list::selected comment
| -rw-r--r-- | libtui/widget/list/list.ha | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libtui/widget/list/list.ha b/libtui/widget/list/list.ha index 583c1af..d6eebda 100644 --- a/libtui/widget/list/list.ha +++ b/libtui/widget/list/list.ha @@ -341,7 +341,8 @@ export fn regexmark(l: *listwidget, re: *regex::regex) void = { }; // Returns the selected item or marked items if there are any. The returned -// value is borrowed from the list's items. +// value is borrowed from the list's items. If []str is returned, the slice must +// be freed. export fn selected(l: listwidget) (str | []str) = { if (len(l.marked.items) > 0) { let result: []str = []; |
