diff src/ex_cmds.c @ 8560:f3c636c673f7 v7.4.1570

commit https://github.com/vim/vim/commit/426dd0219512af5f4abeb0901b533159253ffba3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 15:09:29 2016 +0100 patch 7.4.1570 Problem: There is no way to avoid the message when editing a file. Solution: Add the "F" flag to 'shortmess'. (Shougo, closes https://github.com/vim/vim/issues/686)
author Christian Brabandt <cb@256bit.org>
date Tue, 15 Mar 2016 15:15:04 +0100
parents f4dca5239317
children c76cb97073bd
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2605,7 +2605,8 @@ ex_file(exarg_T *eap)
 	    return;
     }
     /* print full file name if :cd used */
-    fileinfo(FALSE, FALSE, eap->forceit);
+    if (!shortmess(SHM_FILEINFO))
+	fileinfo(FALSE, FALSE, eap->forceit);
 }
 
 /*
@@ -3884,7 +3885,8 @@ 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;
     }