aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2016-08-23 16:11:26 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2016-10-30 10:52:05 +0100
commite8c0f909626094350be7ee7b524697804da38dc1 (patch)
treeb6c5281cca8d9112897eb69adc649d13539d7936 /src/nvim/ex_docmd.c
parent561c1e39e05bac583f851de6165cd656058df7e1 (diff)
downloadrneovim-e8c0f909626094350be7ee7b524697804da38dc1.tar.gz
rneovim-e8c0f909626094350be7ee7b524697804da38dc1.tar.bz2
rneovim-e8c0f909626094350be7ee7b524697804da38dc1.zip
Linted
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index a7b1ee2f54..d8b92e9ec0 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -1249,7 +1249,7 @@ static char_u * do_one_cmd(char_u **cmdlinep,
ea.line1 = 1;
ea.line2 = 1;
ea.is_live = flags & DOCMD_LIVE_PREVIEW;
- ++ex_nesting_level;
+ ex_nesting_level++;
/* When the last file has not been edited :q has to be typed twice. */
if (quitmore
@@ -1727,8 +1727,9 @@ static char_u * do_one_cmd(char_u **cmdlinep,
if (ea.cmdidx == CMD_SIZE) {
if (!ea.skip) {
STRCPY(IObuff, _("E492: Not an editor command"));
- if (!(flags & DOCMD_VERBOSE))
+ if (!(flags & DOCMD_VERBOSE)) {
append_command(*cmdlinep);
+ }
errormsg = IObuff;
did_emsg_syntax = TRUE;
}