Don't clear inputbox after :normal command.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 1 Dec 2014 22:52:24 +0000 (23:52 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 1 Dec 2014 22:55:04 +0000 (23:55 +0100)
This lead to empty inputbox for example if hinting is started by ':no f', but
the inputbox must contain the ';o'. Without the inputbox content the hinting
does not work.

src/ex.c

index be500b1..0731ccb 100644 (file)
--- a/src/ex.c
+++ b/src/ex.c
@@ -827,7 +827,7 @@ static VbCmdResult ex_normal(const ExArg *arg)
     /* if called with bang - don't apply mapping */
     map_handle_string(arg->rhs->str, !arg->bang);
 
-    return VB_CMD_SUCCESS;
+    return VB_CMD_SUCCESS | VB_CMD_KEEPINPUT;
 }
 
 static VbCmdResult ex_open(const ExArg *arg)