aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-09-18 21:17:06 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-10-01 15:22:48 -0300
commitc1edd0799000956b8bd23cbc49a4b015e117879e (patch)
tree28d43fba1b4830b0c297311431cedcfda637ae71 /src
parentafe8a32be01d006d6c25f69b4aa1b6e92464ab63 (diff)
downloadrneovim-c1edd0799000956b8bd23cbc49a4b015e117879e.tar.gz
rneovim-c1edd0799000956b8bd23cbc49a4b015e117879e.tar.bz2
rneovim-c1edd0799000956b8bd23cbc49a4b015e117879e.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_cmds.c5
1 files changed, 3 insertions, 2 deletions
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