Commit 7837eeac2ff69333430c0e0adb259d6c2b6a69ed

Stefan Sperling 2018-09-24T12:01:49

make 'tog tree' navigate to parent with backspace key again

diff --git a/tog/tog.1 b/tog/tog.1
index 09b58a6..91f55cb 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -213,7 +213,7 @@ view for the currently selected file.
 Switch to the
 .Cm log
 view for the currently selected tree entry.
-.It Cm Left-arrow
+.It Cm Backspace
 Move back to the parent directory.
 .It Cm i
 Show the object IDs for all objects displayed in the
diff --git a/tog/tog.c b/tog/tog.c
index 9c0e229..2c93b3c 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -2886,7 +2886,7 @@ input_tree_view(struct tog_view **new_view, struct tog_view **dead_view,
 		case '\r':
 			if (s->selected_entry == NULL) {
 				struct tog_parent_tree *parent;
-		case KEY_LEFT:
+		case KEY_BACKSPACE:
 				/* user selected '..' */
 				if (s->tree == s->root)
 					break;