diff options
author | Wayne Rowcliffe <war1025@gmail.com> | 2014-08-20 19:39:05 -0500 |
---|---|---|
committer | Wayne Rowcliffe <war1025@gmail.com> | 2014-09-08 17:27:41 -0500 |
commit | ac0b9714edbb7697b8324f922024401baea8953b (patch) | |
tree | 85449173705a443081b1189a9d1087df74030703 /src/nvim/ex_cmds2.c | |
parent | fe99930c46c096b9be277d3201b3ea9b5bf2f659 (diff) | |
download | rneovim-ac0b9714edbb7697b8324f922024401baea8953b.tar.gz rneovim-ac0b9714edbb7697b8324f922024401baea8953b.tar.bz2 rneovim-ac0b9714edbb7697b8324f922024401baea8953b.zip |
Additional FOR_ALL_WINDOWS usage
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index fdf225c073..f1524ffce9 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -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. */ |