Don't remove error message if ex cmd is not known.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 4 Dec 2014 22:37:05 +0000 (23:37 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 4 Dec 2014 22:38:28 +0000 (23:38 +0100)
src/ex.c

index 6964f6d..4858427 100644 (file)
--- a/src/ex.c
+++ b/src/ex.c
@@ -484,7 +484,7 @@ VbCmdResult ex_run_string(const char *input)
     while (input && *input) {
         if (!parse(&input, arg) || !(res = execute(arg))) {
             free_cmdarg(arg);
-            return VB_CMD_ERROR;
+            return VB_CMD_ERROR | VB_CMD_KEEPINPUT;
         }
     }
     free_cmdarg(arg);