mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user