aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-29 16:53:55 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-29 16:53:55 -0400
commit458a6f58b67298ad3df276ffcc525eb3b32b8a56 (patch)
tree00fc7046af88678f51c414d66f3873bc9d6610a5 /src
parent63b1a7d0cf6d192585c4929cff188e9c255c0a76 (diff)
downloadrneovim-458a6f58b67298ad3df276ffcc525eb3b32b8a56.tar.gz
rneovim-458a6f58b67298ad3df276ffcc525eb3b32b8a56.tar.bz2
rneovim-458a6f58b67298ad3df276ffcc525eb3b32b8a56.zip
globals: arg_had_last is bool
Diffstat (limited to 'src')
-rw-r--r--src/nvim/buffer.c2
-rw-r--r--src/nvim/ex_docmd.c2
-rw-r--r--src/nvim/globals.h2
-rw-r--r--src/nvim/main.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index a28d9774ab..5ad56ff450 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -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) {
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index cec5431bbd..bb23734a7c 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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--;
}
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index 5606747ce9..3af5040275 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -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 */
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 4b838a837c..c32fb351ef 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -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();