From 9b6f192693b02e2e5547baf7885d91e61eaa7735 Mon Sep 17 00:00:00 2001 From: Wayne Rowcliffe Date: Fri, 19 Sep 2014 23:28:50 -0500 Subject: Replace FOR_ALL_WINDOWS with FOR_ALL_WINDOWS_IN_TAB(curtab) --- src/nvim/fold.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/fold.c') diff --git a/src/nvim/fold.c b/src/nvim/fold.c index 186e75981e..95f1e054b9 100644 --- a/src/nvim/fold.c +++ b/src/nvim/fold.c @@ -463,7 +463,7 @@ void newFoldLevel(void) /* * Set the same foldlevel in other windows in diff mode. */ - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp != curwin && foldmethodIsDiff(wp) && wp->w_p_scb) { wp->w_p_fdl = curwin->w_p_fdl; newFoldLevelWin(wp); @@ -1143,7 +1143,7 @@ setManualFold ( * Do the same operation in other windows in diff mode. Calculate the * line number from the diffs. */ - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp != curwin && foldmethodIsDiff(wp) && wp->w_p_scb) { dlnum = diff_lnum_win(curwin->w_cursor.lnum, wp); if (dlnum != 0) { -- cgit