Additional FOR_ALL_WINDOWS usage

This commit is contained in:
Wayne Rowcliffe
2014-08-20 19:39:05 -05:00
parent fe99930c46
commit ac0b9714ed
14 changed files with 123 additions and 123 deletions

View File

@@ -1228,7 +1228,7 @@ check_changed_any (
/* buf in other tab */
for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) {
if (tp != curtab) {
for (wint_T *wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next) {
for (win_T *wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next) {
add_bufnum(bufnrs, &bufnum, wp->w_buffer->b_fnum);
}
}
@@ -1282,8 +1282,8 @@ check_changed_any (
}
/* Try to find a window that contains the buffer. */
if (buf != curbuf)
wint_T *wp;
if (buf != curbuf) {
win_T *wp;
FOR_ALL_TAB_WINDOWS(tp, wp) {
if (wp->w_buffer == buf) {
goto_tabpage_win(tp, wp);
@@ -1294,6 +1294,7 @@ check_changed_any (
goto buf_found;
}
}
}
buf_found:
/* Open the changed buffer in the current window. */