aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-07 09:51:59 +0200
committerGitHub <noreply@github.com>2018-09-07 09:51:59 +0200
commit50eadfe2e991a0bb5fe0f98377d91702f0a20492 (patch)
treea9a02766e6773ff2deb8f2c864638521d6fa0d1d /src/nvim/main.c
parenta9d83e8112b634544bbaaedaa36e3fa0785b9b51 (diff)
parentd99a2689143827fae19e2354d27287587f2059cb (diff)
downloadrneovim-50eadfe2e991a0bb5fe0f98377d91702f0a20492.tar.gz
rneovim-50eadfe2e991a0bb5fe0f98377d91702f0a20492.tar.bz2
rneovim-50eadfe2e991a0bb5fe0f98377d91702f0a20492.zip
Merge #8962 from janlazo/vim-8.0.0733
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index ab8b33aa12..d5e37929b9 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -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;
/*
@@ -1551,8 +1551,8 @@ 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;
+ win_close(curwin, true);
+ advance = false;
}
arg_idx = 1;
@@ -1562,9 +1562,9 @@ 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) {
- ++arg_idx;
- win_close(curwin, TRUE);
- advance = FALSE;
+ arg_idx++;
+ win_close(curwin, true);
+ 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").
@@ -1598,8 +1598,8 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
did_emsg = FALSE; /* avoid hit-enter prompt */
getout(1);
}
- win_close(curwin, TRUE);
- advance = FALSE;
+ win_close(curwin, true);
+ advance = false;
}
if (arg_idx == GARGCOUNT - 1)
arg_had_last = TRUE;