diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-22 20:39:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-22 20:39:17 +0200 |
commit | 6f9a476b2f2f0bb5c50d703ec4fc535ffd5bfe8f (patch) | |
tree | 6911e1c75f4601d5cf3e356b9a9ee00578bef695 /src/ex_docmd.c | |
parent | d6abcd154cdc6a8dd4b7c6ccad37617ea8a1b4aa (diff) |
patch 8.0.0656: cannot use ! after some user commandsv8.0.0656
Problem: Cannot use ! after some user commands.
Solution: Properly check for existing command. (Higashi Higashi)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 9dac9bf3a7..bdd152dfd7 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2370,7 +2370,8 @@ do_one_cmd( goto doend; } /* Check for wrong commands. */ - if (*p == '!' && ea.cmd[1] == 0151 && ea.cmd[0] == 78) + if (*p == '!' && ea.cmd[1] == 0151 && ea.cmd[0] == 78 + && !IS_USER_CMDIDX(ea.cmdidx)) { errormsg = uc_fun_cmd(); goto doend; |