about summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-24 18:20:39 -0500
committerJune McEnroe <june@causal.agency>2019-02-24 18:20:39 -0500
commite8f40a2dafb4ea9d0e5c8aa276c5456b42c6721e (patch)
treec829a157989e03c0ea23fa7c368bc4b24c3ba649 /ui.c
parentClarify /window documentation (diff)
downloadcatgirl-e8f40a2dafb4ea9d0e5c8aa276c5456b42c6721e.tar.gz
catgirl-e8f40a2dafb4ea9d0e5c8aa276c5456b42c6721e.zip
Scroll by full pages with PageUp/PageDown
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 2f58fd4..f89c4c4 100644
--- a/ui.c
+++ b/ui.c
@@ -430,8 +430,8 @@ static void keyCode(wchar_t code) {
 	switch (code) {
 		break; case KEY_UP:        windowScroll(win, -1);
 		break; case KEY_DOWN:      windowScroll(win, +1);
-		break; case KEY_PPAGE:     windowScroll(win, -logHeight() / 2);
-		break; case KEY_NPAGE:     windowScroll(win, +logHeight() / 2);
+		break; case KEY_PPAGE:     windowScroll(win, -(logHeight() - 1));
+		break; case KEY_NPAGE:     windowScroll(win, +(logHeight() - 1));
 		break; case KEY_LEFT:      edit(win->tag, EditLeft, 0);
 		break; case KEY_RIGHT:     edit(win->tag, EditRight, 0);
 		break; case KEY_HOME:      edit(win->tag, EditHome, 0);