aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorWayne Rowcliffe <war1025@gmail.com>2014-09-19 23:28:50 -0500
committerWayne Rowcliffe <war1025@gmail.com>2014-09-24 19:00:50 -0500
commit9b6f192693b02e2e5547baf7885d91e61eaa7735 (patch)
treecddc921b79b25a45e624f499e843d1ab8c65214f /src/nvim/buffer.c
parentbd1ecad4f13c75bd10daf0b542fdc95aaa347dc4 (diff)
downloadrneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.tar.gz
rneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.tar.bz2
rneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.zip
Replace FOR_ALL_WINDOWS with FOR_ALL_WINDOWS_IN_TAB(curtab)
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 4eff8df9f5..b3bcf54258 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;