Commit 75e48879a0a0698f6687007c34a673949451e1ac

Stefan Sperling 2018-05-20T13:28:33

make space bar scroll page down in tog diff view

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tog/tog.c b/tog/tog.c
index ea595b4..46284fb 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -905,6 +905,7 @@ show_diff_view(struct got_object *obj1, struct got_object *obj2,
 					first_displayed_line++;
 				break;
 			case KEY_NPAGE:
+			case ' ':
 				i = 0;
 				while (!eof && i++ < LINES - 1) {
 					char *line = parse_next_line(f, NULL);