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/buffer.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/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 83cddb85bf..6ce3c77c66 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1760,7 +1760,7 @@ buflist_findpat ( /* Ignore the match if the buffer is not open in * the current tab. */ bool found_window = false; - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_buffer == buf) { found_window = true; break; @@ -2025,7 +2025,7 @@ static void buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum, colnr_T col, static bool wininfo_other_tab_diff(wininfo_T *wip) { if (wip->wi_opt.wo_diff) { - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { /* return false when it's a window in the current tab page, thus * the buffer was in diff mode here */ if (wip->wi_win == wp) { @@ -3761,7 +3761,7 @@ do_arg_all ( if (opened[i] > 0) { /* Move the already present window to below the current window */ if (curwin->w_arg_idx != i) { - FOR_ALL_WINDOWS(wp) { + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { if (wp->w_arg_idx == i) { if (keep_tabs) { new_curwin = wp; |