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/workshop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/workshop.c') diff --git a/src/workshop.c b/src/workshop.c index cf7b46be9..fe59e1b60 100644 --- a/src/workshop.c +++ b/src/workshop.c @@ -1319,7 +1319,7 @@ get_window( { win_T *wp = NULL; /* window filename is in */ - for (wp = firstwin; wp != NULL; wp = W_NEXT(wp)) + FOR_ALL_WINDOWS(wp) if (buf == wp->w_buffer) break; return wp; -- cgit v1.2.1