aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-10-03 13:44:50 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-10-03 13:44:50 -0400
commit5e65e3eae079d4765124ce791ce79649444ca403 (patch)
tree113af0483ab523a793ad1ac96426caabcc89210e /src/nvim/diff.c
parent60e5d8d1ccd5a07038138f18752620edebeb8a3d (diff)
parent7aca07b0a74f882e59d6462597cb5d981ed2cc1f (diff)
downloadrneovim-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/diff.c')
-rw-r--r--src/nvim/diff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index 7927473439..39db77bd82 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -87,7 +87,7 @@ void diff_buf_adjust(win_T *win)
// When there is no window showing a diff for this buffer, remove
// it from the diffs.
bool found_win = false;
- FOR_ALL_WINDOWS(wp) {
+ FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if ((wp->w_buffer == win->w_buffer) && wp->w_p_diff) {
found_win = true;
}
@@ -578,7 +578,7 @@ static int diff_check_sanity(tabpage_T *tp, diff_T *dp)
/// @param dofold Also recompute the folds
static void diff_redraw(int dofold)
{
- FOR_ALL_WINDOWS(wp) {
+ FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_p_diff) {
redraw_win_later(wp, SOME_VALID);
if (dofold && foldmethodIsDiff(wp)) {
@@ -1107,7 +1107,7 @@ void ex_diffoff(exarg_T *eap)
win_T *old_curwin = curwin;
int diffwin = FALSE;
- FOR_ALL_WINDOWS(wp) {
+ FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (eap->forceit ? wp->w_p_diff : (wp == curwin)) {
// Set 'diff', 'scrollbind' off and 'wrap' on. If option values
// were saved in diff_win_options() restore them.
@@ -2358,7 +2358,7 @@ void ex_diffgetput(exarg_T *eap)
/// @param skip_idx
static void diff_fold_update(diff_T *dp, int skip_idx)
{
- FOR_ALL_WINDOWS(wp) {
+ FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
for (int i = 0; i < DB_COUNT; ++i) {
if ((curtab->tp_diffbuf[i] == wp->w_buffer) && (i != skip_idx)) {
foldUpdate(wp, dp->df_lnum[i], dp->df_lnum[i] + dp->df_count[i]);