Commit 0996b108f50d63f22a8a3b948385eaf29c34f51c

Stefan Sperling 2018-10-18T12:47:24

remove '[' and ']' key bindings from tog log

diff --git a/tog/tog.1 b/tog/tog.1
index ad5f964..2716958 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -83,9 +83,9 @@ The key bindings for
 .Cm tog log
 are as follows:
 .Bl -tag -width Ds
-.It Cm Down-arrow, j, ], Page-down
+.It Cm Down-arrow, j, Page-down
 Move the selection cursor down.
-.It Cm Up-arrow, k, [, Page-up
+.It Cm Up-arrow, k, Page-up
 Move the selection cursor up.
 .It Cm Enter
 Open a
diff --git a/tog/tog.c b/tog/tog.c
index cb285c3..c414939 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1290,7 +1290,6 @@ input_log_view(struct tog_view **new_view, struct tog_view **dead_view,
 	switch (ch) {
 		case 'k':
 		case KEY_UP:
-		case '[':
 			if (s->selected > 0)
 				s->selected--;
 			if (s->selected > 0)
@@ -1309,7 +1308,6 @@ input_log_view(struct tog_view **new_view, struct tog_view **dead_view,
 			break;
 		case 'j':
 		case KEY_DOWN:
-		case ']':
 			if (s->selected < MIN(view->nlines - 2,
 			    s->commits.ncommits - 1)) {
 				s->selected++;