From 00d253e2b2f435a5386582c3f857008e7ac355c2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 6 Apr 2020 22:13:01 +0200 Subject: patch 8.2.0523: loops are repeated Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882) --- src/quickfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quickfix.c') diff --git a/src/quickfix.c b/src/quickfix.c index 127811a658..5c24babdfe 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -6276,7 +6276,7 @@ wipe_dummy_buffer(buf_T *buf, char_u *dirname_start) win_T *wp; if (firstwin->w_next != NULL) - for (wp = firstwin; wp != NULL; wp = wp->w_next) + FOR_ALL_WINDOWS(wp) if (wp->w_buffer == buf) { if (win_close(wp, FALSE) == OK) -- cgit v1.2.3