mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user