Commit c46b93520a1536b30c3ccaf95007c9d74ad4c20e

Stefan Sperling 2018-07-12T23:32:01

make backspace scroll up an entire page in tog diff view

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tog/tog.c b/tog/tog.c
index 4f289f3..a39d6b3 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -974,11 +974,11 @@ show_diff_view(struct got_object *obj1, struct got_object *obj2,
 				break;
 			case 'k':
 			case KEY_UP:
-			case KEY_BACKSPACE:
 				if (first_displayed_line > 1)
 					first_displayed_line--;
 				break;
 			case KEY_PPAGE:
+			case KEY_BACKSPACE:
 				i = 0;
 				while (i++ < LINES - 1 &&
 				    first_displayed_line > 1)