diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-03-17 00:23:38 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-03-17 00:23:38 -0400 |
commit | d7511f5cdefa8075ca8e95915712edb292f5a185 (patch) | |
tree | 054bd7a88bba554f557440ee23fe2e79b276950b /src/nvim/buffer.c | |
parent | c94575fded78be1c9fca8b7d193c9bbb30a1dc95 (diff) | |
parent | 5a9d3be54cce2f21d5f76a4bc5ebef08927b1988 (diff) | |
download | rneovim-d7511f5cdefa8075ca8e95915712edb292f5a185.tar.gz rneovim-d7511f5cdefa8075ca8e95915712edb292f5a185.tar.bz2 rneovim-d7511f5cdefa8075ca8e95915712edb292f5a185.zip |
Merge #4446
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 8f5ae3445e..8d3769cb54 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -141,14 +141,21 @@ open_buffer ( /* mark cursor position as being invalid */ curwin->w_valid = 0; - if (curbuf->b_ffname != NULL - ) { + 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. */ - if (curbuf->b_help) + (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) { int save_bin = curbuf->b_p_bin; linenr_T line_count; |