summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-08-01 21:19:43 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-01 21:19:43 +0200
commite4db17fb6e2d029aa2dddfca703ace9bcf0d85fd (patch)
tree8e74fd7a45bdc270a77992cc04293ee0c5a6b8de /src/ex_docmd.c
parent0d4d9ee9bb18f89d76c67f037baebe2c2db545f0 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index f2ff787e08..fde68be723 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