0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0547: looping over empty out_loop[] entries

Problem:    Looping over empty out_loop[] entries.
Solution:   Store the array size.
This commit is contained in:
Bram Moolenaar
2022-09-22 16:36:25 +01:00
parent 236ccbf6f8
commit 6d313bec53
3 changed files with 8 additions and 6 deletions

View File

@@ -2126,6 +2126,7 @@ struct outer_S {
// out_loop_stack
short var_count; // number of variables defined in a loop
} out_loop[MAX_LOOP_DEPTH];
int out_loop_size; // nr of used entries in out_loop[]
};
struct partial_S