commit | 2932359000b2f918d5fade79ea4d124d5943cd07 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jul 24 22:04:11 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jul 24 22:04:11 2016 +0200 |
tree | 1ca4fa98569a4d20ce066c7d6254404bcf431b47 | |
parent | 6835dc61aebca2b602d85a9d63c449ace58683b4 [diff] [blame] |
patch 7.4.2101 Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
diff --git a/src/workshop.c b/src/workshop.c index cf7b46b..fe59e1b 100644 --- a/src/workshop.c +++ b/src/workshop.c
@@ -1319,7 +1319,7 @@ { 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;