Replace FOR_ALL_WINDOWS with FOR_ALL_WINDOWS_IN_TAB(curtab)

This commit is contained in:
Wayne Rowcliffe
2014-09-19 23:28:50 -05:00
parent bd1ecad4f1
commit 9b6f192693
21 changed files with 56 additions and 58 deletions

View File

@@ -5188,7 +5188,7 @@ static void ex_close(exarg_T *eap)
*/
static void ex_pclose(exarg_T *eap)
{
FOR_ALL_WINDOWS(win) {
FOR_ALL_WINDOWS_IN_TAB(win, curtab) {
if (win->w_p_pvw) {
ex_win_close(eap->forceit, win, NULL);
break;
@@ -6137,7 +6137,7 @@ static void ex_syncbind(exarg_T *eap)
*/
if (curwin->w_p_scb) {
topline = curwin->w_topline;
FOR_ALL_WINDOWS(wp) {
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_p_scb && wp->w_buffer) {
y = wp->w_buffer->b_ml.ml_line_count - p_so;
if (topline > y) {