summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--main.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/README.md b/README.md
index c6519a5..3f0e1e6 100644
--- a/README.md
+++ b/README.md
@@ -22,8 +22,10 @@ executable in `~/.local/bin/cbink`, but you can override it with e.g.
 
 * `k` / `Up` --- up
 * `j` / `Down` -- down
-* `d` / `Space` / `PageDown` / `Ctrl-D` --- page down
-* `b` / `u` / `PageUp` / `Ctrl-U` --- page up
+* `Space` / `PageDown` --- page down
+* `b` / `PageUp` --- page up
+* `d` / `Ctrl-D` --- half page down
+* `u` / `Ctrl-U` --- half page up
 * `g` / `Home` -- top of feed
 * `G` / `End` -- bottom of feed
 * `r` -- refresh feed
diff --git a/main.c b/main.c
index 988935d..46d186c 100644
--- a/main.c
+++ b/main.c
@@ -501,18 +501,18 @@ int main(void) {
 			cur = posts.len - 1;
 			break;
 		case ' ':
-		case 'd':
 		case KEY_NPAGE:
 			cur = line_skip(cur, &gfx, PAGE_LEN);
 			break;
+		case 'd':
 		case 0x04 /* ^D */:
 			cur = line_skip(cur, &gfx, HALF_PAGE_LEN);
 			break;
 		case 'b':
-		case 'u':
 		case KEY_PPAGE:
 			cur = line_skip(cur, &gfx, -PAGE_LEN);
 			break;
+		case 'u':
 		case 0x15 /* ^U */:
 			cur = line_skip(cur, &gfx, -HALF_PAGE_LEN);
 			break;