summaryrefslogtreecommitdiff
path: root/src/vim9cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-02 19:43:57 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-02 19:43:57 +0100
commit97f8c1081ec6d6d158bb51e18fa23a36d3ed5623 (patch)
treebff2837d32937a9edf15ed39b770e8b5c34c92de /src/vim9cmds.c
parenteabddc425ea23fb91b3b0058ff01e9e4ede53351 (diff)
downloadvim-git-97f8c1081ec6d6d158bb51e18fa23a36d3ed5623.tar.gz
patch 8.2.4666: Vim9: assignment not recognized in skipped blockv8.2.4666
Problem: Vim9: assignment not recognized in skipped block. Solution: When skipping assume identifier exists. (closes #10059)
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r--src/vim9cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index 483b1f34b..a853d9b0b 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -139,7 +139,7 @@ compile_unlet(
//
// Figure out the LHS type and other properties.
//
- ret = compile_lhs(p, &lhs, CMD_unlet, FALSE, 0, cctx);
+ ret = compile_lhs(p, &lhs, CMD_unlet, FALSE, FALSE, 0, cctx);
// Use the info in "lhs" to unlet the item at the index in the
// list or dict.
@@ -2160,7 +2160,7 @@ compile_redir(char_u *line, exarg_T *eap, cctx_T *cctx)
arg = skipwhite(arg);
if (compile_assign_lhs(arg, lhs, CMD_redir,
- FALSE, FALSE, 1, cctx) == FAIL)
+ FALSE, FALSE, FALSE, 1, cctx) == FAIL)
return NULL;
if (need_type(&t_string, lhs->lhs_member_type,
-1, 0, cctx, FALSE, FALSE) == FAIL)