mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.0310: file info msg not always suppressed 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 #3221)
This commit is contained in:
@@ -828,10 +828,13 @@ ml_open_file(buf_T *buf)
|
||||
*/
|
||||
void
|
||||
check_need_swap(
|
||||
int newfile) /* reading file into new buffer */
|
||||
int newfile) // reading file into new buffer
|
||||
{
|
||||
int old_msg_silent = msg_silent; // might be reset by an E325 message
|
||||
|
||||
if (curbuf->b_may_swap && (!curbuf->b_p_ro || !newfile))
|
||||
ml_open_file(curbuf);
|
||||
msg_silent = old_msg_silent;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user