summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-29 12:23:39 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-29 12:23:39 +0100
commit309c4e0ed7dcf42011e29976a06e6335f5ae6d1c (patch)
tree5795ac80d9bdc65ea251d50c627a1955b4d43602
parentbf26941f40923d331169a4ecb7341608f5d1ca38 (diff)
patch 9.0.0315: shell command is displayed in message windowv9.0.0315
Problem: Shell command is displayed in message window. Solution: Do not echo the shell command in the message window.
-rw-r--r--src/ex_cmds.c1
-rw-r--r--src/message.c5
-rw-r--r--src/version.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 01518ff64d..96302529cc 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -1011,6 +1011,7 @@ do_bang(
if (addr_count == 0) // :!
{
// echo the command
+ dont_use_message_window();
msg_start();
msg_putchar(':');
msg_putchar('!');
diff --git a/src/message.c b/src/message.c
index e4f8af11af..5c5e3783ae 100644
--- a/src/message.c
+++ b/src/message.c
@@ -1472,7 +1472,7 @@ msg_start(void)
}
#ifdef FEAT_EVAL
- if (need_clr_eos || p_ch == 0)
+ if (need_clr_eos || use_message_window())
{
// Halfway an ":echo" command and getting an (error) message: clear
// any text from the command.
@@ -1508,8 +1508,9 @@ msg_start(void)
#endif
0;
}
- else if (msg_didout || p_ch == 0) // start message on next line
+ else if (msg_didout || use_message_window())
{
+ // start message on next line
msg_putchar('\n');
did_return = TRUE;
if (exmode_active != EXMODE_NORMAL)
diff --git a/src/version.c b/src/version.c
index b1eb73f861..82b43beee1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -708,6 +708,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 315,
+/**/
314,
/**/
313,