summaryrefslogtreecommitdiffstats
path: root/src/evalvars.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evalvars.c')
-rw-r--r--src/evalvars.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index 14b7dc39a4..d7a1a96a54 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1858,6 +1858,7 @@ ex_let_one(
char_u *p;
int lval_flags = (flags & (ASSIGN_NO_DECL | ASSIGN_DECL))
? GLV_NO_DECL : 0;
+ lval_flags |= (flags & ASSIGN_FOR_LOOP) ? GLV_FOR_LOOP : 0;
if (op != NULL && *op != '=')
lval_flags |= GLV_ASSIGN_WITH_OP;