main: advance in edit_buffers() is bool

This commit is contained in:
Jan Edmund Lazo
2018-09-06 20:18:12 -04:00
parent cfb2828897
commit c0d26ba4f9

View File

@@ -1540,7 +1540,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
{
int arg_idx; /* index in argument list */
int i;
int advance = TRUE;
bool advance = true;
win_T *win;
/*
@@ -1552,7 +1552,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
/* When w_arg_idx is -1 remove the window (see create_windows()). */
if (curwin->w_arg_idx == -1) {
win_close(curwin, true);
advance = FALSE;
advance = false;
}
arg_idx = 1;
@@ -1564,7 +1564,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
if (curwin->w_arg_idx == -1) {
++arg_idx;
win_close(curwin, true);
advance = FALSE;
advance = false;
continue;
}
@@ -1579,7 +1579,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
win_enter(curwin->w_next, false);
}
}
advance = TRUE;
advance = true;
// Only open the file if there is no file in this window yet (that can
// happen when vimrc contains ":sall").
@@ -1599,7 +1599,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
getout(1);
}
win_close(curwin, true);
advance = FALSE;
advance = false;
}
if (arg_idx == GARGCOUNT - 1)
arg_had_last = TRUE;