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) { for (i = 0; i < count && i < opened_len && !got_int; ++i) {
if (alist == &global_alist && i == global_alist.al_ga.ga_len - 1) if (alist == &global_alist && i == global_alist.al_ga.ga_len - 1)
arg_had_last = TRUE; arg_had_last = true;
if (opened[i] > 0) { if (opened[i] > 0) {
/* Move the already present window to below the current window */ /* Move the already present window to below the current window */
if (curwin->w_arg_idx != i) { 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) if (al == &global_alist)
arg_had_last = FALSE; arg_had_last = false;
recursive--; 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 alist_T global_alist; /* global argument list */
EXTERN int max_alist_id INIT(= 0); ///< the previous argument list id 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 */ global_alist */
EXTERN int ru_col; /* column for ruler */ 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; advance = false;
} }
if (arg_idx == GARGCOUNT - 1) if (arg_idx == GARGCOUNT - 1)
arg_had_last = TRUE; arg_had_last = true;
++arg_idx; ++arg_idx;
} }
os_breakcheck(); os_breakcheck();