diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-20 21:07:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-20 21:07:00 +0100 |
commit | 95388e3179f6b995dbc4acd3f23e3856bb0286fd (patch) | |
tree | 50d3ec75d76361c9b3952ce2a5f48b3c63f47e41 /src/ex_docmd.c | |
parent | eeece9e4885df6190d2615b199efa2b1d22c4bdb (diff) | |
download | vim-git-95388e3179f6b995dbc4acd3f23e3856bb0286fd.tar.gz |
patch 8.2.2022: Vim9: star command recognized errornouslyv8.2.2022
Problem: Vim9: star command recognized errornously.
Solution: Give an error for missing colon. (issue #7335)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index a6bdac3ab..2c35c8ef2 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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) |