globals: arg_had_last is bool

This commit is contained in:
Jan Edmund Lazo 2018-09-29 16:53:55 -04:00
parent 63b1a7d0cf
commit 458a6f58b6
4 changed files with 4 additions and 4 deletions

View File

@ -4535,7 +4535,7 @@ do_arg_all (
for (i = 0; i < count && i < opened_len && !got_int; ++i) {
if (alist == &global_alist && i == global_alist.al_ga.ga_len - 1)
arg_had_last = TRUE;
arg_had_last = true;
if (opened[i] > 0) {
/* Move the already present window to below the current window */
if (curwin->w_arg_idx != i) {

View File

@ -6568,7 +6568,7 @@ void alist_set(alist_T *al, int count, char_u **files, int use_curbuf, int *fnum
}
if (al == &global_alist)
arg_had_last = FALSE;
arg_had_last = false;
recursive--;
}

View File

@ -528,7 +528,7 @@ EXTERN buf_T *curbuf INIT(= NULL); // currently active buffer
*/
EXTERN alist_T global_alist; /* global argument list */
EXTERN int max_alist_id INIT(= 0); ///< the previous argument list id
EXTERN int arg_had_last INIT(= FALSE); /* accessed last file in
EXTERN bool arg_had_last INIT(= false); /* accessed last file in
global_alist */
EXTERN int ru_col; /* column for ruler */

View File

@ -1625,7 +1625,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
advance = false;
}
if (arg_idx == GARGCOUNT - 1)
arg_had_last = TRUE;
arg_had_last = true;
++arg_idx;
}
os_breakcheck();