diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-09-25 12:26:01 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-09-25 14:54:20 +0200 |
commit | 68d425ac92599089047d98f1c533981ea917fed1 (patch) | |
tree | 784aa8d4a6b4436fcd7af8004d619f4702c27bac /src/nvim/ex_cmds.c | |
parent | ccd1a84a9655279230be15630d4e5978c806c4e1 (diff) | |
download | rneovim-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.c | 2 |
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 |