aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-08-19 23:49:25 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-08-19 23:49:25 -0400
commite1c330a486c184152cb48d637c6d04caba5290bd (patch)
treeb2379cae30ea446456681d1dc62d80ef95345f69 /src/nvim/ex_docmd.c
parent0b7bff5bb71ddc2e9c41863ec41b9aea74d0fe75 (diff)
parent888a31ba454cf9c054527a26459c112593efa54b (diff)
downloadrneovim-e1c330a486c184152cb48d637c6d04caba5290bd.tar.gz
rneovim-e1c330a486c184152cb48d637c6d04caba5290bd.tar.bz2
rneovim-e1c330a486c184152cb48d637c6d04caba5290bd.zip
Merge pull request #1024 from war1025/dev/for_all_buffers
Add FOR_ALL_BUFFERS helper
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 3eb9d1277e..446d51be3f 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -7871,7 +7871,6 @@ makeopens (
char_u *dirnow /* Current directory name */
)
{
- buf_T *buf;
int only_save_windows = TRUE;
int nr;
int cnr = 1;
@@ -7943,7 +7942,7 @@ makeopens (
return FAIL;
/* Now put the other buffers into the buffer list */
- for (buf = firstbuf; buf != NULL; buf = buf->b_next) {
+ FOR_ALL_BUFFERS(buf) {
if (!(only_save_windows && buf->b_nwindows == 0)
&& !(buf->b_help && !(ssop_flags & SSOP_HELP))
&& buf->b_fname != NULL