summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-21 18:59:14 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-21 18:59:14 +0100
commite8e369a796e110760d033e937b40c84e0c5e8b36 (patch)
treeaaf71aeb71f9bf17a914a8c56322394fe6f30484 /src/structs.h
parentec5e1483ebda577e0b7f638c485203cd0e479c47 (diff)
downloadvim-git-e8e369a796e110760d033e937b40c84e0c5e8b36.tar.gz
patch 9.0.0535: closure gets wrong value in for loop with two loop variablesv9.0.0535
Problem: Closure gets wrong value in for loop with two loop variables. Solution: Correctly compute the number of loop variables to clear.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h
index e46446d4d..19dc55075 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -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