summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-21 18:50:18 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-21 18:50:18 +0200
commit2f0f871159b2cba862fcd41edab65b17da75c422 (patch)
treed8dbf0ef961c3f56a0b3ed74b16cee56e99821d2 /src/memline.c
parent7feb35e7782907b44659a2748ff5d7489deeed74 (diff)
downloadvim-git-2f0f871159b2cba862fcd41edab65b17da75c422.tar.gz
patch 8.1.0310: file info msg not always suppressed with 'F' in 'shortmess'v8.1.0310
Problem: File info message not always suppressed with 'F' in 'shortmess'. (Asheq Imran) Solution: Save and restore msg_silent. (Christian Brabandt, closes #3221)
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/memline.c b/src/memline.c
index fb262acef..fbdd8a372 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -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;
}
/*