From 3a137cfcfbc8686f2441de9604b15dc5d9ab4cd7 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Thu, 20 Mar 2025 13:53:59 +0100 Subject: Change frame and cursor to use int instead of u16 and fix reframe --- cmd/il.ha | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd') 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; }; }; -- cgit v1.2.3