diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-10-03 13:44:50 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-10-03 13:44:50 -0400 |
commit | 5e65e3eae079d4765124ce791ce79649444ca403 (patch) | |
tree | 113af0483ab523a793ad1ac96426caabcc89210e /src/nvim/fold.c | |
parent | 60e5d8d1ccd5a07038138f18752620edebeb8a3d (diff) | |
parent | 7aca07b0a74f882e59d6462597cb5d981ed2cc1f (diff) | |
download | rneovim-5e65e3eae079d4765124ce791ce79649444ca403.tar.gz rneovim-5e65e3eae079d4765124ce791ce79649444ca403.tar.bz2 rneovim-5e65e3eae079d4765124ce791ce79649444ca403.zip |
Merge pull request #1208 from war1025/dev/remove_for_all_windows
Remove FOR_ALL_WINDOWS and replace with FOR_ALL_WINDOWS_IN_TAB(curtab)
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r-- | src/nvim/fold.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |