From 2932359000b2f918d5fade79ea4d124d5943cd07 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 24 Jul 2016 22:04:11 +0200 Subject: patch 7.4.2101 Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan) --- src/normal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/normal.c') diff --git a/src/normal.c b/src/normal.c index bc72c811b..bbcd6180b 100644 --- a/src/normal.c +++ b/src/normal.c @@ -4073,7 +4073,7 @@ check_scrollbind(linenr_T topline_diff, long leftcol_diff) * loop through the scrollbound windows and scroll accordingly */ VIsual_select = VIsual_active = 0; - for (curwin = firstwin; curwin; curwin = curwin->w_next) + FOR_ALL_WINDOWS(curwin) { curbuf = curwin->w_buffer; /* skip original window and windows with 'noscrollbind' */ -- cgit v1.2.1