summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-24 16:53:35 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-24 16:53:35 +0200
commitfc0896093c3b3e753859a5f929921933e7a2e6cd (patch)
tree5bbcf3b820898f7d369c451f5c2896c5d5ca0deb /src/ex_cmds.c
parent7cb6eecd32b0b51bd0a25df968386d0b09379afa (diff)
patch 8.1.0110: file name not displayed with ":file"v8.1.0110
Problem: File name not displayed with ":file" when 'F' is in 'shortmess'. Solution: Always display the file name when there is no argument (Christian Brabandt, closes #3070)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 53334342c1..2ed2bdb4d3 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3094,11 +3094,12 @@ ex_file(exarg_T *eap)
{
if (rename_buffer(eap->arg) == FAIL)
return;
+ redraw_tabline = TRUE;
}
- /* print full file name if :cd used */
- if (!shortmess(SHM_FILEINFO))
+
+ // print file name if no argument or 'F' is not in 'shortmess'
+ if (*eap->arg == NUL || !shortmess(SHM_FILEINFO))
fileinfo(FALSE, FALSE, eap->forceit);
- redraw_tabline = TRUE;
}
/*