0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 7.4.2101

Problem:    Looping over windows, buffers and tab pages is inconsistant.
Solution:   Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar
2016-07-24 22:04:11 +02:00
parent 6835dc61ae
commit 2932359000
33 changed files with 148 additions and 142 deletions

View File

@@ -473,7 +473,7 @@ nb_parse_cmd(char_u *cmd)
{
buf_T *buf;
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
FOR_ALL_BUFFERS(buf)
buf->b_has_sign_column = FALSE;
/* The IDE is breaking the connection. */
@@ -721,7 +721,7 @@ count_changed_buffers(void)
int n;
n = 0;
for (bufp = firstbuf; bufp != NULL; bufp = bufp->b_next)
FOR_ALL_BUFFERS(bufp)
if (bufp->b_changed)
++n;
return n;