From 77a7ca458bc3e6e140149d1f2bf97593e2d502cd Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 13 Mar 2016 13:13:31 +0900 Subject: '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 --- src/nvim/buffer.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/nvim/buffer.c') 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) { -- cgit