0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 9.0.0535: closure gets wrong value in for loop with two loop variables

Problem:    Closure gets wrong value in for loop with two loop variables.
Solution:   Correctly compute the number of loop variables to clear.
This commit is contained in:
Bram Moolenaar
2022-09-21 18:59:14 +01:00
parent ec5e1483eb
commit e8e369a796
5 changed files with 34 additions and 5 deletions

View File

@@ -1630,7 +1630,7 @@ typedef struct svar_S svar_T;
typedef struct
{
int fi_semicolon; // TRUE if ending in '; var]'
int fi_varcount; // nr of variables in the list
int fi_varcount; // nr of variables in [] or zero
int fi_break_count; // nr of line breaks encountered
listwatch_T fi_lw; // keep an eye on the item used.
list_T *fi_list; // list being used