diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-08-30 19:44:19 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-08-30 19:44:19 +0800 |
commit | 9ae353ab44724808a41794589b68c1b4339d572a (patch) | |
tree | 7f3091f1b66b1b0eaa240db0186575940c33c86c /src/nvim/ex_docmd.c | |
parent | 0b6fa3a553da3b83419c48fcbb6fb3ec413598e0 (diff) | |
parent | 5566f30006a73c30dfbdeece2e08830826d28aa4 (diff) | |
download | rneovim-9ae353ab44724808a41794589b68c1b4339d572a.tar.gz rneovim-9ae353ab44724808a41794589b68c1b4339d572a.tar.bz2 rneovim-9ae353ab44724808a41794589b68c1b4339d572a.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 6e7938046a..d1405978b3 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -9835,7 +9835,7 @@ static void ex_terminal(exarg_T *eap) if (*eap->arg != NUL) { // Run {cmd} in 'shell'. char *name = (char *)vim_strsave_escaped(eap->arg, (char_u *)"\"\\"); snprintf(ex_cmd, sizeof(ex_cmd), - ":enew%s | call termopen(\"%s\") | startinsert", + ":enew%s | call termopen(\"%s\")", eap->forceit ? "!" : "", name); xfree(name); } else { // No {cmd}: run the job with tokenized 'shell'. @@ -9857,7 +9857,7 @@ static void ex_terminal(exarg_T *eap) shell_free_argv(argv); snprintf(ex_cmd, sizeof(ex_cmd), - ":enew%s | call termopen([%s]) | startinsert", + ":enew%s | call termopen([%s])", eap->forceit ? "!" : "", shell_argv + 1); } |