summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-15 15:09:29 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-15 15:09:29 +0100
commit426dd0219512af5f4abeb0901b533159253ffba3 (patch)
tree515e63551f20af6f51a2723c4d47ae7ca4c76cbc /src/buffer.c
parente27dba499aaaf2ffe9f0da45f062450b434cddaa (diff)
patch 7.4.1570v7.4.1570
Problem: There is no way to avoid the message when editing a file. Solution: Add the "F" flag to 'shortmess'. (Shougo, closes #686)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 9ef8a50822..543b4a7078 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -139,14 +139,19 @@ open_buffer(
#endif
)
{
+ int old_msg_silent = msg_silent;
+
#ifdef FEAT_NETBEANS_INTG
int oldFire = netbeansFireChanges;
netbeansFireChanges = 0;
#endif
+ if (shortmess(SHM_FILEINFO))
+ msg_silent = 1;
retval = readfile(curbuf->b_ffname, curbuf->b_fname,
(linenr_T)0, (linenr_T)0, (linenr_T)MAXLNUM, eap,
flags | READ_NEW);
+ msg_silent = old_msg_silent;
#ifdef FEAT_NETBEANS_INTG
netbeansFireChanges = oldFire;
#endif