summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-01 15:44:29 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-01 15:44:29 +0200
commitb84a381c75e50ca0e0a24cc3e152d0c70f8c2c7d (patch)
tree3998652a44fc333dff2364c3a27f4aac57c322e9 /src/ex_docmd.c
parent11abd095210fc84e5dcee87b9baed86061caefe4 (diff)
patch 8.2.0675: Vim9: no support for closuresv8.2.0675
Problem: Vim9: no support for closures. Solution: Do not re-use stack entries.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 65ef936e9f..94a3367a3a 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3157,7 +3157,7 @@ append_command(char_u *cmd)
find_ex_command(
exarg_T *eap,
int *full UNUSED,
- int (*lookup)(char_u *, size_t, cctx_T *) UNUSED,
+ void *(*lookup)(char_u *, size_t, cctx_T *) UNUSED,
cctx_T *cctx UNUSED)
{
int len;
@@ -3197,7 +3197,7 @@ find_ex_command(
// "g:var = expr"
// "var = expr" where "var" is a local var name.
if (((p - eap->cmd) > 2 && eap->cmd[1] == ':')
- || lookup(eap->cmd, p - eap->cmd, cctx) >= 0)
+ || lookup(eap->cmd, p - eap->cmd, cctx) != NULL)
{
eap->cmdidx = CMD_let;
return eap->cmd;