Commit 38f945301c3860c6ab41b2aefa82733b72b41e94

Stefan Sperling 2018-07-12T23:27:57

make backspace scroll up in blame view and document space key

diff --git a/tog/tog.1 b/tog/tog.1
index 4a9bef0..6cbea76 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -115,9 +115,9 @@ The key bindings for
 .Cm tog blame
 are as follows:
 .Bl -tag -width Ds
-.It Cm Down-arrow, j, Page-down
+.It Cm Down-arrow, j, Page-down, Space
 Move the selection cursor down.
-.It Cm Up-arrow, k, Page-up
+.It Cm Up-arrow, k, Page-up, Backspace
 Move the selection cursor up.
 .It Cm Enter
 Switch to the
diff --git a/tog/tog.c b/tog/tog.c
index f025bcd..57e777c 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1546,6 +1546,7 @@ show_blame_view(const char *path, struct got_object_id *commit_id,
 					first_displayed_line--;
 				break;
 			case KEY_PPAGE:
+			case KEY_BACKSPACE:
 				if (first_displayed_line == 1) {
 					selected_line = 1;
 					break;