forked from aniani/vim
patch 8.2.4666: Vim9: assignment not recognized in skipped block
Problem: Vim9: assignment not recognized in skipped block. Solution: When skipping assume identifier exists. (closes #10059)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user