aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-06 12:04:19 +0800
committerGitHub <noreply@github.com>2022-04-06 12:04:19 +0800
commit233014f92b5d4d5bf8a6f019241aafd1b05dd383 (patch)
tree57412142f255768efbf50806dd5f3cf53b5a565c /src/nvim/ex_cmds2.c
parent128bedc0d2435bbc754cdb954447fc1cbfd4ac13 (diff)
downloadrneovim-233014f92b5d4d5bf8a6f019241aafd1b05dd383.tar.gz
rneovim-233014f92b5d4d5bf8a6f019241aafd1b05dd383.tar.bz2
rneovim-233014f92b5d4d5bf8a6f019241aafd1b05dd383.zip
vim-patch:8.2.0836: not all :cdo output is visible (#18007)
Problem: Not all :cdo output is visible. Solution: Reset 'shortmess' temporarily. (Yegappan Lakshmanan, closes vim/vim#6155) https://github.com/vim/vim/commit/14798ab9a5ee4b94f6c12f1986207569356acfc8 Cherry pick relevant changes form patches 8.1.1826 and 8.2.0557.
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index fe1dec7298..ac1d760bce 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -1470,7 +1470,13 @@ void ex_listdo(exarg_T *eap)
size_t qf_idx = qf_get_cur_idx(eap);
+ // Clear 'shm' to avoid that the file message overwrites
+ // any output from the command.
+ p_shm_save = vim_strsave(p_shm);
+ set_option_value("shm", 0L, "", 0);
ex_cnext(eap);
+ set_option_value("shm", 0L, (char *)p_shm_save, 0);
+ xfree(p_shm_save);
// If jumping to the next quickfix entry fails, quit here.
if (qf_get_cur_idx(eap) == qf_idx) {