mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
Declare garray iterators in the for() scope where possible #819
This commit is contained in:

committed by
Justin M. Keyes

parent
a321480342
commit
f39fd5b4c4
@@ -3796,10 +3796,9 @@ void win_size_save(garray_T *gap)
|
||||
void win_size_restore(garray_T *gap)
|
||||
{
|
||||
win_T *wp;
|
||||
int i;
|
||||
|
||||
if (win_count() * 2 == gap->ga_len) {
|
||||
i = 0;
|
||||
int i = 0;
|
||||
for (wp = firstwin; wp != NULL; wp = wp->w_next) {
|
||||
frame_setwidth(wp->w_frame, ((int *)gap->ga_data)[i++]);
|
||||
win_setheight_win(((int *)gap->ga_data)[i++], wp);
|
||||
|
Reference in New Issue
Block a user