mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
main: advance in edit_buffers() is bool
This commit is contained in:
@@ -1540,7 +1540,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
|
|||||||
{
|
{
|
||||||
int arg_idx; /* index in argument list */
|
int arg_idx; /* index in argument list */
|
||||||
int i;
|
int i;
|
||||||
int advance = TRUE;
|
bool advance = true;
|
||||||
win_T *win;
|
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()). */
|
/* When w_arg_idx is -1 remove the window (see create_windows()). */
|
||||||
if (curwin->w_arg_idx == -1) {
|
if (curwin->w_arg_idx == -1) {
|
||||||
win_close(curwin, true);
|
win_close(curwin, true);
|
||||||
advance = FALSE;
|
advance = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
arg_idx = 1;
|
arg_idx = 1;
|
||||||
@@ -1564,7 +1564,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
|
|||||||
if (curwin->w_arg_idx == -1) {
|
if (curwin->w_arg_idx == -1) {
|
||||||
++arg_idx;
|
++arg_idx;
|
||||||
win_close(curwin, true);
|
win_close(curwin, true);
|
||||||
advance = FALSE;
|
advance = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1579,7 +1579,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
|
|||||||
win_enter(curwin->w_next, false);
|
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
|
// Only open the file if there is no file in this window yet (that can
|
||||||
// happen when vimrc contains ":sall").
|
// happen when vimrc contains ":sall").
|
||||||
@@ -1599,7 +1599,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
|
|||||||
getout(1);
|
getout(1);
|
||||||
}
|
}
|
||||||
win_close(curwin, true);
|
win_close(curwin, true);
|
||||||
advance = FALSE;
|
advance = false;
|
||||||
}
|
}
|
||||||
if (arg_idx == GARGCOUNT - 1)
|
if (arg_idx == GARGCOUNT - 1)
|
||||||
arg_had_last = TRUE;
|
arg_had_last = TRUE;
|
||||||
|
Reference in New Issue
Block a user