mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
vim-patch:8.1.0310: file info msg with 'F' in 'shortmess'
Problem: File info message not always suppressed with 'F' in 'shortmess'.
(Asheq Imran)
Solution: Save and restore msg_silent. (Christian Brabandt, closes vim/vim#3221)
2f0f871159
ref #8840
ref #9027
This commit is contained in:
@@ -884,7 +884,15 @@ void handle_swap_exists(bufref_T *old_curbuf)
|
||||
buf = old_curbuf->br_buf;
|
||||
}
|
||||
if (buf != NULL) {
|
||||
int old_msg_silent = msg_silent;
|
||||
|
||||
if (shortmess(SHM_FILEINFO)) {
|
||||
msg_silent = 1; // prevent fileinfo message
|
||||
}
|
||||
enter_buffer(buf);
|
||||
// restore msg_silent, so that the command line will be shown
|
||||
msg_silent = old_msg_silent;
|
||||
|
||||
if (old_tw != curbuf->b_p_tw) {
|
||||
check_colorcolumn(curwin);
|
||||
}
|
||||
|
Reference in New Issue
Block a user