adds ctrl+p and ctrl+n for ex history movement
authorRobert Timm <mail@rtti.de>
Mon, 27 Feb 2017 22:26:37 +0000 (23:26 +0100)
committerRobert Timm <mail@rtti.de>
Mon, 27 Feb 2017 22:36:10 +0000 (23:36 +0100)
src/ex.c

index 7f77950..65126fa 100644 (file)
--- a/src/ex.c
+++ b/src/ex.c
@@ -262,11 +262,13 @@ VbResult ex_keypress(Client *c, int key)
                 complete(c, -1);
                 break;
 
-            case KEY_UP:
+            case KEY_UP: /* fall through */
+            case CTRL('P'):
                 history(c, TRUE);
                 break;
 
-            case KEY_DOWN:
+            case KEY_DOWN: /* fall through */
+            case CTRL('N'):
                 history(c, FALSE);
                 break;