aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-03-13 13:13:31 +0900
committerJustin M. Keyes <justinkz@gmail.com>2016-03-17 00:07:38 -0400
commit77a7ca458bc3e6e140149d1f2bf97593e2d502cd (patch)
treec16313c43e047a06d91636044d8957187bb03a27 /src/nvim/buffer.c
parentc94575fded78be1c9fca8b7d193c9bbb30a1dc95 (diff)
downloadrneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.tar.gz
rneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.tar.bz2
rneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.zip
'shortmess': Add "F" flag. #4446
Add "Don't give the file editing message" flag in shortmess option. Add the UI tests by @fmoralesc Fix the changes for Vim 7.4.1570
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 8f5ae3445e..4661a191a9 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -143,10 +143,17 @@ open_buffer (
if (curbuf->b_ffname != NULL
) {
+ int old_msg_silent = msg_silent;
+ 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);
- /* Help buffer is filtered. */
+ (linenr_T)0, (linenr_T)0, (linenr_T)MAXLNUM, eap,
+ flags | READ_NEW);
+ msg_silent = old_msg_silent;
+
+ // Help buffer is filtered.
if (curbuf->b_help)
fix_help_buffer();
} else if (read_stdin) {