From c1edd0799000956b8bd23cbc49a4b015e117879e Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 18 Sep 2015 21:17:06 -0300 Subject: shell: Ensure silent bang mappings won't cut output Setting `msg_didout` after `call_shell` is enough as it will cause `hit_return_msg()` to print on next line. Close #3269 --- src/nvim/ex_cmds.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 6cb379f0b4..81abf2fa63 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1246,8 +1246,9 @@ do_shell ( // 1" command to the terminal. ui_cursor_goto(msg_row, msg_col); (void)call_shell(cmd, flags, NULL); - did_check_timestamps = FALSE; - need_check_timestamps = TRUE; + msg_didout = true; + did_check_timestamps = false; + need_check_timestamps = true; // put the message cursor at the end of the screen, avoids wait_return() // to overwrite the text that the external command showed -- cgit