forked from aniani/vim
patch 8.2.2022: Vim9: star command recognized errornously
Problem: Vim9: star command recognized errornously. Solution: Give an error for missing colon. (issue #7335)
This commit is contained in:
@@ -3482,6 +3482,11 @@ find_ex_command(
|
||||
break;
|
||||
}
|
||||
|
||||
// Not not recognize ":*" as the star command unless '*' is in
|
||||
// 'cpoptions'.
|
||||
if (eap->cmdidx == CMD_star && vim_strchr(p_cpo, CPO_STAR) == NULL)
|
||||
p = eap->cmd;
|
||||
|
||||
// Look for a user defined command as a last resort. Let ":Print" be
|
||||
// overruled by a user defined command.
|
||||
if ((eap->cmdidx == CMD_SIZE || eap->cmdidx == CMD_Print)
|
||||
|
Reference in New Issue
Block a user