summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2025-03-20 13:53:59 +0100
committerJulian Hurst <ark@mansus.space>2025-03-20 13:53:59 +0100
commit3a137cfcfbc8686f2441de9604b15dc5d9ab4cd7 (patch)
treec4a9fc07a29da6889fe3cc0cfce0d55c50eaba28 /cmd
parentddac62a2a43ee62da4f5302e9cb2958f6ff82cea (diff)
downloadhare-tui-3a137cfcfbc8686f2441de9604b15dc5d9ab4cd7.tar.gz
Change frame and cursor to use int instead of u16 and fix reframe
Diffstat (limited to 'cmd')
-rw-r--r--cmd/il.ha6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/il.ha b/cmd/il.ha
index abbde84..fc5bd40 100644
--- a/cmd/il.ha
+++ b/cmd/il.ha
@@ -95,9 +95,9 @@ fn nextsearch(li: *list::scrolllist, term: (str | void)) void = {
case void =>
return;
};
- for (let i = li.cursor + 1; i < len(li.items); i += 1) {
+ for (let i = li.cursor + 1; i < len(li.items): int; i += 1) {
if (strings::contains(li.items[i], term)) {
- list::setcursor(li, i: u16);
+ list::setcursor(li, i);
return;
};
};
@@ -112,7 +112,7 @@ fn prevsearch(li: *list::scrolllist, term: (str | void)) void = {
};
for (let i: int = li.cursor: int - 1; i >= 0; i -= 1) {
if (strings::contains(li.items[i], term)) {
- list::setcursor(li, i: u16);
+ list::setcursor(li, i);
return;
};
};