summaryrefslogtreecommitdiff
path: root/src/mark.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-24 22:04:11 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-24 22:04:11 +0200
commit2932359000b2f918d5fade79ea4d124d5943cd07 (patch)
tree1ca4fa98569a4d20ce066c7d6254404bcf431b47 /src/mark.c
parent6835dc61aebca2b602d85a9d63c449ace58683b4 (diff)
downloadvim-git-2932359000b2f918d5fade79ea4d124d5943cd07.tar.gz
patch 7.4.2101v7.4.2101
Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mark.c b/src/mark.c
index 1e6b26a7a..9f0faf93b 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -1864,7 +1864,7 @@ write_viminfo_marks(FILE *fp_out, garray_T *buflist)
#endif
fputs(_("\n# History of marks within files (newest to oldest):\n"), fp_out);
- for (buf = firstbuf; buf != NULL; buf = buf->b_next)
+ FOR_ALL_BUFFERS(buf)
{
/*
* Only write something if buffer has been loaded and at least one
@@ -2018,7 +2018,7 @@ copy_viminfo_marks(
else /* fp_out != NULL */
{
/* This is slow if there are many buffers!! */
- for (buf = firstbuf; buf != NULL; buf = buf->b_next)
+ FOR_ALL_BUFFERS(buf)
if (buf->b_ffname != NULL)
{
home_replace(NULL, buf->b_ffname, name_buf, LSIZE, TRUE);