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/ex_docmd.c | |
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/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index f2ff787e0..fde68be72 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2741,7 +2741,7 @@ checkforcmd( * Check for an Ex command with optional tail, not followed by "(". * If there is a match advance "pp" to the argument and return TRUE. */ - static int + int checkforcmd_noparen( char_u **pp, // start of command char *cmd, // name of command |