'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
This commit is contained in:
Shougo Matsushita
2016-03-13 13:13:31 +09:00
committed by Justin M. Keyes
parent c94575fded
commit 77a7ca458b
6 changed files with 63 additions and 7 deletions

View File

@@ -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) {