'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

@@ -1506,8 +1506,11 @@ void ex_file(exarg_T *eap)
if (rename_buffer(eap->arg) == FAIL)
return;
}
/* print full file name if :cd used */
fileinfo(FALSE, FALSE, eap->forceit);
if (!shortmess(SHM_FILEINFO)) {
// print full file name if :cd used
fileinfo(false, false, eap->forceit);
}
}
/*
@@ -2483,7 +2486,9 @@ do_ecmd (
msg_scroll = msg_scroll_save;
msg_scrolled_ign = TRUE;
fileinfo(FALSE, TRUE, FALSE);
if (!shortmess(SHM_FILEINFO)) {
fileinfo(false, true, false);
}
msg_scrolled_ign = FALSE;
}