Mercurial > vim
diff src/ex_docmd.c @ 22950:1270401054d8 v8.2.2022
patch 8.2.2022: Vim9: star command recognized errornously
Commit: https://github.com/vim/vim/commit/95388e3179f6b995dbc4acd3f23e3856bb0286fd
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 20 21:07:00 2020 +0100
patch 8.2.2022: Vim9: star command recognized errornously
Problem: Vim9: star command recognized errornously.
Solution: Give an error for missing colon. (issue https://github.com/vim/vim/issues/7335)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 20 Nov 2020 21:15:04 +0100 |
parents | 707b90980de5 |
children | 4c97c0747017 |
line wrap: on
line diff
--- 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)