aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst92@gmail.com>2022-06-18 13:42:42 +0200
committerJulian Hurst <ark@mansus.space>2023-09-07 00:04:56 +0200
commitfaa53815a7bf84e87e89152cfc2507d395ac8af9 (patch)
treed5d1bf5411422b74405ac06c993be77dee700b3d
parent16af583b2666cc1c24203237c69e3cd4d567faf3 (diff)
downloadhare-libtui-faa53815a7bf84e87e89152cfc2507d395ac8af9.tar.gz
Update list::selected comment
-rw-r--r--libtui/widget/list/list.ha3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtui/widget/list/list.ha b/libtui/widget/list/list.ha
index 1f8a0fb..611b4ae 100644
--- a/libtui/widget/list/list.ha
+++ b/libtui/widget/list/list.ha
@@ -340,7 +340,8 @@ export fn regexmark(l: *listwidget, re: *regex::regex) void = {
};
};
-// Returns the selected item or marked items if there are any.
+// Returns the selected item or marked items if there are any. If []str is
+// returned it must be freed.
export fn selected(l: listwidget) (str | []str) = {
if (len(l.marked.items) > 0) {
let result: []str = [];