From 8b6a89dc070dd33c85eade752eb492bbae6bce89 Mon Sep 17 00:00:00 2001
From: Robert Timm <mail@rtti.de>
Date: Mon, 27 Feb 2017 23:26:37 +0100
Subject: [PATCH] adds ctrl+p and ctrl+n for ex history movement

---
 src/ex.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/ex.c b/src/ex.c
index 7f77950..65126fa 100644
--- 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;
 
-- 
2.20.1