Commit Diff


commit - 1e37a5c25285636727c1763a34e6a5bd71f156fa
commit + a4292ac5c9e1f998ce83d3f5d1acfea20812618e
blob - 817a11423d3688827a2345620b9d40e1cac64de2
blob + 58e496f53d03bfabdf514e8b9509254f08ef5fbd
--- tog/tog.c
+++ tog/tog.c
@@ -58,6 +58,7 @@
 #define	MAX(_a,_b) ((_a) > (_b) ? (_a) : (_b))
 #endif
 
+#define CTRL(x)		((x) & 0x1f)
 
 #ifndef nitems
 #define nitems(_a)	(sizeof((_a)) / sizeof((_a)[0]))
@@ -1649,6 +1650,7 @@ input_log_view(struct tog_view **new_view, struct tog_
 		    &s->commits);
 		break;
 	case KEY_PPAGE:
+	case CTRL('b'):
 		if (s->first_displayed_entry == NULL)
 			break;
 		if (TAILQ_FIRST(&s->commits.head) ==
@@ -1680,7 +1682,8 @@ input_log_view(struct tog_view **new_view, struct tog_
 		    &s->thread_args.commits_needed,
 		    &s->thread_args.need_commits);
 		break;
-	case KEY_NPAGE: {
+	case KEY_NPAGE:
+	case CTRL('f'): {
 		struct commit_queue_entry *first;
 		first = s->first_displayed_entry;
 		if (first == NULL)