diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-28 21:30:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-28 21:30:11 +0200 |
commit | 14798ab9a5ee4b94f6c12f1986207569356acfc8 (patch) | |
tree | c66f6e21112c8e38163c9f2b6442ce5c826dfd29 /src/ex_cmds2.c | |
parent | c998370562425e70f4cf202a87112d638f5f7b38 (diff) |
patch 8.2.0836: not all :cdo output is visiblev8.2.0836
Problem: Not all :cdo output is visible.
Solution: Reset 'shortmess' temporarily. (Yegappan Lakshmanan, closes #6155)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index a0f383982f..cd066f5c6b 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -643,7 +643,13 @@ ex_listdo(exarg_T *eap) 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((char_u *)"shm", 0L, (char_u *)"", 0); ex_cnext(eap); + set_option_value((char_u *)"shm", 0L, p_shm_save, 0); + vim_free(p_shm_save); // If jumping to the next quickfix entry fails, quit here if (qf_get_cur_idx(eap) == qf_idx) |