vim-patch:7.4.2101

Problem:    Looping over windows, buffers and tab pages is inconsistant.
Solution:   Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)

2932359000
This commit is contained in:
James McCoy
2017-03-10 16:13:37 -05:00
parent 5674057e3a
commit 564e9dc17f
10 changed files with 51 additions and 35 deletions

View File

@@ -4733,7 +4733,6 @@ check_timestamps (
int focus /* called for GUI focus event */
)
{
buf_T *buf;
int didit = 0;
int n;
@@ -4758,7 +4757,7 @@ check_timestamps (
++no_wait_return;
did_check_timestamps = TRUE;
already_warned = FALSE;
for (buf = firstbuf; buf != NULL; ) {
FOR_ALL_BUFFERS(buf) {
/* Only check buffers in a window. */
if (buf->b_nwindows > 0) {
bufref_T bufref;
@@ -4773,7 +4772,6 @@ check_timestamps (
continue;
}
}
buf = buf->b_next;
}
--no_wait_return;
need_check_timestamps = FALSE;