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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user