diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-15 15:09:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-15 15:09:29 +0100 |
commit | 426dd0219512af5f4abeb0901b533159253ffba3 (patch) | |
tree | 515e63551f20af6f51a2723c4d47ae7ca4c76cbc /src/ex_cmds.c | |
parent | e27dba499aaaf2ffe9f0da45f062450b434cddaa (diff) |
patch 7.4.1570v7.4.1570
Problem: There is no way to avoid the message when editing a file.
Solution: Add the "F" flag to 'shortmess'. (Shougo, closes #686)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 6461c3c08f..ae88cc69e8 100644 --- 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; } |