diff options
| author | Julian Hurst <ark@mansus.space> | 2025-03-21 18:00:45 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2025-03-21 18:00:45 +0100 |
| commit | 158fe9ad854f6e902a12e13541f948ddc7e4b8ab (patch) | |
| tree | 6f09bb34c858942c5bc296c3b18aed93ca846275 /cmd/il.ha | |
| parent | 7cc571bad6760b8ffab6618ad518da45ab7a33af (diff) | |
| parent | 6cb9d6f8756e690e6cd2360b8b1ab531da45c405 (diff) | |
| download | hare-tui-158fe9ad854f6e902a12e13541f948ddc7e4b8ab.tar.gz | |
Merge branch 'master' into nomem
Diffstat (limited to 'cmd/il.ha')
| -rw-r--r-- | cmd/il.ha | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -61,6 +61,22 @@ export fn main() void = { if (r == 'K') { list::frameup(&li); }; + if (r == 'd') { + const nextpage = li.cursor + li.frame.end - li.frame.start; + fmt::errorln(nextpage)!; + list::setcursor(&li, nextpage); + fmt::errorln(li.frame.start)!; + fmt::errorln(li.frame.end)!; + fmt::errorln()!; + }; + if (r == 'u') { + const prevpage = li.cursor - (li.frame.end - li.frame.start); + fmt::errorln(prevpage)!; + list::setcursor(&li, prevpage); + fmt::errorln(li.frame.start)!; + fmt::errorln(li.frame.end)!; + fmt::errorln()!; + }; if (r == 'g') { list::top(&li); }; |
