diff options
author | James McCoy <jamessan@jamessan.com> | 2017-03-10 16:13:37 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-03-11 20:32:09 -0500 |
commit | 564e9dc17fd53ab6cb1bc63a55dba2df9538a31f (patch) | |
tree | 40c382cf733ab05a3d6c51dd684253ddce7b2cf9 /src/nvim/fileio.c | |
parent | 5674057e3a5597f792a077d714bd7d32af81bfc8 (diff) | |
download | rneovim-564e9dc17fd53ab6cb1bc63a55dba2df9538a31f.tar.gz rneovim-564e9dc17fd53ab6cb1bc63a55dba2df9538a31f.tar.bz2 rneovim-564e9dc17fd53ab6cb1bc63a55dba2df9538a31f.zip |
vim-patch:7.4.2101
Problem: Looping over windows, buffers and tab pages is inconsistant.
Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
https://github.com/vim/vim/commit/2932359000b2f918d5fade79ea4d124d5943cd07
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 4 |
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; |