diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-01 21:19:43 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-01 21:19:43 +0200 |
commit | e4db17fb6e2d029aa2dddfca703ace9bcf0d85fd (patch) | |
tree | 8e74fd7a45bdc270a77992cc04293ee0c5a6b8de /src/proto/ex_docmd.pro | |
parent | 0d4d9ee9bb18f89d76c67f037baebe2c2db545f0 (diff) | |
download | vim-git-e4db17fb6e2d029aa2dddfca703ace9bcf0d85fd.tar.gz |
patch 8.2.3271: Vim9: cannot use :command or :au with block in :def functionv8.2.3271
Problem: Vim9: cannot use :command or :au with a block in a :def function.
Solution: Recognize the start of the block.
Diffstat (limited to 'src/proto/ex_docmd.pro')
-rw-r--r-- | src/proto/ex_docmd.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/ex_docmd.pro b/src/proto/ex_docmd.pro index d22d40689..419d00457 100644 --- a/src/proto/ex_docmd.pro +++ b/src/proto/ex_docmd.pro @@ -9,6 +9,7 @@ void *getline_cookie(char_u *(*fgetline)(int, void *, int, getline_opt_T), void char_u *getline_peek(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie); char *ex_errmsg(char *msg, char_u *arg); int checkforcmd(char_u **pp, char *cmd, int len); +int checkforcmd_noparen(char_u **pp, char *cmd, int len); int parse_command_modifiers(exarg_T *eap, char **errormsg, cmdmod_T *cmod, int skip_only); int has_cmdmod(cmdmod_T *cmod); int cmdmod_error(void); |