commit d696e02f2ddb6f6e270664c6206384b42c0e0995 parent b8087842bf2f2da4dfa2b16165f42030f9215181 Author: hhvn <dev@hhvn.uk> Date: Mon, 17 Jan 2022 01:08:12 +0000 zygo.c: don't underflow with 'G' Diffstat:
M | zygo.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/zygo.c b/zygo.c @@ -832,7 +832,8 @@ run(void) { draw_page(); break; case 'G': - ui.scroll = list_len(&page) - LINES; + if (list_len(&page) > LINES) + ui.scroll = list_len(&page) - LINES; draw_page(); break; case 'n':