Commit dccb68cbf18a5c37081c79ae6168daac4c60d882

Stefan Sperling 2018-07-12T23:29:54

disable enter key scroll in tog diff view

diff --git a/tog/tog.1 b/tog/tog.1
index 6cbea76..dcd134c 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -96,7 +96,7 @@ The key bindings for
 .Cm tog diff
 are as follows:
 .Bl -tag -width Ds
-.It Cm Down-arrow, j, Page-down, Space, Enter
+.It Cm Down-arrow, j, Page-down, Space
 Scroll down.
 .It Cm Up-arrow, k, Page-up, Backspace
 Scroll up.
diff --git a/tog/tog.c b/tog/tog.c
index 57e777c..4f289f3 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -986,8 +986,6 @@ show_diff_view(struct got_object *obj1, struct got_object *obj2,
 				break;
 			case 'j':
 			case KEY_DOWN:
-			case KEY_ENTER:
-			case '\r':
 				if (!eof)
 					first_displayed_line++;
 				break;