aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-08-21 19:46:43 -0400
committerGitHub <noreply@github.com>2017-08-21 19:46:43 -0400
commit9ff0cc70855fc3eb11ad0162ee02e742f354d360 (patch)
treef924645168fda1146cd8947c4cdf14299ee869f4 /src
parent8d1ccb606d3806dcf9c4bcfdb0446d8139c0e765 (diff)
parent73286a81cfd92f334dcfa91490648fd105696fab (diff)
downloadrneovim-9ff0cc70855fc3eb11ad0162ee02e742f354d360.tar.gz
rneovim-9ff0cc70855fc3eb11ad0162ee02e742f354d360.tar.bz2
rneovim-9ff0cc70855fc3eb11ad0162ee02e742f354d360.zip
Merge pull request #6808 from nelstrom/normal-mode-terminal
Make :terminal remain in normal mode when created
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_docmd.c4
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);
}