Mercurial > vim
diff src/structs.h @ 30399:7fc27d7ce3b0 v9.0.0535
patch 9.0.0535: closure gets wrong value in for loop with two loop variables
Commit: https://github.com/vim/vim/commit/e8e369a796e110760d033e937b40c84e0c5e8b36
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 21 18:59:14 2022 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Sep 2022 20:00:05 +0200 |
parents | fc0830246f49 |
children | 221cca379bd5 |
line wrap: on
line diff
--- 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