aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorWayne Rowcliffe <war1025@gmail.com>2014-08-02 20:19:33 -0500
committerWayne Rowcliffe <war1025@gmail.com>2014-08-02 20:19:33 -0500
commit8cf45786b11c4c96444962227a960a3683d9f2b1 (patch)
treecb77b3c5ffb31809b004f08ef4288575ecfc1c40 /src/nvim/fileio.c
parent44afe610f8cfbb72141fddd4b13f5fe54386211f (diff)
downloadrneovim-8cf45786b11c4c96444962227a960a3683d9f2b1.tar.gz
rneovim-8cf45786b11c4c96444962227a960a3683d9f2b1.tar.bz2
rneovim-8cf45786b11c4c96444962227a960a3683d9f2b1.zip
Add FOR_ALL_BUFFERS helper
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index fad8bd9581..932af336b8 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -4363,7 +4363,7 @@ void shorten_fnames(int force)
char_u *p;
os_dirname(dirname, MAXPATHL);
- for (buf = firstbuf; buf != NULL; buf = buf->b_next) {
+ FOR_ALL_BUFFERS(buf) {
if (buf->b_fname != NULL
&& !bt_nofile(buf)
&& !path_with_url(buf->b_fname)
@@ -6134,7 +6134,7 @@ void ex_doautoall(exarg_T *eap)
* gives problems when the autocommands make changes to the list of
* buffers or windows...
*/
- for (buf = firstbuf; buf != NULL; buf = buf->b_next) {
+ FOR_ALL_BUFFERS(buf) {
if (buf->b_ml.ml_mfp != NULL) {
/* find a window for this buffer and save some values */
aucmd_prepbuf(&aco, buf);