summary refs log tree commit diff
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
parentClarify /window documentation (diff)
downloadcatgirl-e8f40a2dafb4ea9d0e5c8aa276c5456b42c6721e.tar.gz
catgirl-e8f40a2dafb4ea9d0e5c8aa276c5456b42c6721e.zip
Scroll by full pages with PageUp/PageDown
Diffstat (limited to '')
-rw-r--r--catgirl.14
-rw-r--r--ui.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/catgirl.1 b/catgirl.1
index 00df98b..7988e9d 100644
--- a/catgirl.1
+++ b/catgirl.1
@@ -308,9 +308,9 @@ Switch to window by number 0\(en9.
 .It Ic Down
 Scroll window down by one line.
 .It Ic PageDown
-Scroll window down by half a page.
+Scroll window down by one page.
 .It Ic PageUp
-Scroll window up by half a page.
+Scroll window up by one page.
 .It Ic Up
 Scroll window up by one line.
 .El
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);
titleJune McEnroe Perhaps this will make it less suspicious to Google. Who knows. 2019-09-16Use sensitivity aliases in TF2June McEnroe 2019-09-16Add The Just CityJune McEnroe 2019-09-12Only GET the final redirect locationJune McEnroe 2019-09-12Consume entire bodyJune McEnroe Aborting the request and leaving data around may be causing intermittent errors. Just discard the rest of the data. 2019-09-10Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it. 2019-09-08Set title User-AgentJune McEnroe Some things don't like you if you don't send one. 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe Allows restarting consumers safely. 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe Oops, didn't see this. 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe