Declare garray iterators in the for() scope where possible #819

This commit is contained in:
Felipe Oliveira Carvalho
2014-06-06 23:25:13 -03:00
committed by Justin M. Keyes
parent a321480342
commit f39fd5b4c4
16 changed files with 232 additions and 324 deletions

View File

@@ -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);