mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
Use Normal mode as default when opening a new terminal
This commit is contained in:
@@ -9835,7 +9835,7 @@ static void ex_terminal(exarg_T *eap)
|
|||||||
if (*eap->arg != NUL) { // Run {cmd} in 'shell'.
|
if (*eap->arg != NUL) { // Run {cmd} in 'shell'.
|
||||||
char *name = (char *)vim_strsave_escaped(eap->arg, (char_u *)"\"\\");
|
char *name = (char *)vim_strsave_escaped(eap->arg, (char_u *)"\"\\");
|
||||||
snprintf(ex_cmd, sizeof(ex_cmd),
|
snprintf(ex_cmd, sizeof(ex_cmd),
|
||||||
":enew%s | call termopen(\"%s\") | startinsert",
|
":enew%s | call termopen(\"%s\")",
|
||||||
eap->forceit ? "!" : "", name);
|
eap->forceit ? "!" : "", name);
|
||||||
xfree(name);
|
xfree(name);
|
||||||
} else { // No {cmd}: run the job with tokenized 'shell'.
|
} else { // No {cmd}: run the job with tokenized 'shell'.
|
||||||
@@ -9857,7 +9857,7 @@ static void ex_terminal(exarg_T *eap)
|
|||||||
shell_free_argv(argv);
|
shell_free_argv(argv);
|
||||||
|
|
||||||
snprintf(ex_cmd, sizeof(ex_cmd),
|
snprintf(ex_cmd, sizeof(ex_cmd),
|
||||||
":enew%s | call termopen([%s]) | startinsert",
|
":enew%s | call termopen([%s])",
|
||||||
eap->forceit ? "!" : "", shell_argv + 1);
|
eap->forceit ? "!" : "", shell_argv + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user