aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 4ea5121a91..f8b5a11642 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -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;