aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-25 12:26:01 +0200
committerbfredl <bjorn.linse@gmail.com>2023-09-25 14:54:20 +0200
commit68d425ac92599089047d98f1c533981ea917fed1 (patch)
tree784aa8d4a6b4436fcd7af8004d619f4702c27bac /src/nvim/ex_cmds.c
parentccd1a84a9655279230be15630d4e5978c806c4e1 (diff)
downloadrneovim-68d425ac92599089047d98f1c533981ea917fed1.tar.gz
rneovim-68d425ac92599089047d98f1c533981ea917fed1.tar.bz2
rneovim-68d425ac92599089047d98f1c533981ea917fed1.zip
refactor: remove 'shortmess' save/restore panic for ex commands
This was only used to avoid the effect of SHM_OVERALL. This can easily be handled in isolation, instead of clearing out all of 'shortmess' which has unwanted side effects and mystifies what really is going on.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 4f6b8f2c8f..dc7136196e 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -2689,7 +2689,7 @@ int do_ecmd(int fnum, char *ffname, char *sfname, exarg_T *eap, linenr_T newlnum
// Obey the 'O' flag in 'cpoptions': overwrite any previous file
// message.
- if (shortmess(SHM_OVERALL) && !exiting && p_verbose == 0) {
+ if (shortmess(SHM_OVERALL) && !msg_listdo_overwrite && !exiting && p_verbose == 0) {
msg_scroll = false;
}
if (!msg_scroll) { // wait a bit when overwriting an error msg