Mercurial > vim
diff src/ex_docmd.c @ 11547:3d03ed329a54 v8.0.0656
patch 8.0.0656: cannot use ! after some user commands
commit https://github.com/vim/vim/commit/6f9a476b2f2f0bb5c50d703ec4fc535ffd5bfe8f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 22 20:39:17 2017 +0200
patch 8.0.0656: cannot use ! after some user commands
Problem: Cannot use ! after some user commands.
Solution: Properly check for existing command. (Higashi Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 22 Jun 2017 20:45:04 +0200 |
parents | 578df034735d |
children | b8299e742f41 |
line wrap: on
line diff
--- 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;