Mercurial > vim
changeset 29954:b8f987e3ebe2 v9.0.0315
patch 9.0.0315: shell command is displayed in message window
Commit: https://github.com/vim/vim/commit/309c4e0ed7dcf42011e29976a06e6335f5ae6d1c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 12:23:39 2022 +0100
patch 9.0.0315: shell command is displayed in message window
Problem: Shell command is displayed in message window.
Solution: Do not echo the shell command in the message window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Aug 2022 13:30:03 +0200 |
parents | 7262e09a4956 |
children | 1251b5181693 |
files | src/ex_cmds.c src/message.c src/version.c |
diffstat | 3 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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('!');
--- 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)