diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-21 09:25:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 09:25:48 +0200 |
commit | 0c9888cdbe800f1945823ec9affa3056b8feeeac (patch) | |
tree | 42d98c3817a3d59906654d168b332e456174385a /src/nvim/ex_cmds.c | |
parent | 8872fce120b0d38d50254c82407038d40da84647 (diff) | |
download | rneovim-0c9888cdbe800f1945823ec9affa3056b8feeeac.tar.gz rneovim-0c9888cdbe800f1945823ec9affa3056b8feeeac.tar.bz2 rneovim-0c9888cdbe800f1945823ec9affa3056b8feeeac.zip |
vim-patch:8.1.0110: file name not displayed with ":file" (#8878)
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 vim/vim#3070)
https://github.com/vim/vim/commit/fc0896093c3b3e753859a5f929921933e7a2e6cd
closes #8817
closes #8873
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 4dcecae9d8..c9eccfa6b0 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1595,15 +1595,16 @@ void ex_file(exarg_T *eap) } if (*eap->arg != NUL || eap->addr_count == 1) { - if (rename_buffer(eap->arg) == FAIL) + if (rename_buffer(eap->arg) == FAIL) { return; + } + redraw_tabline = true; } - if (!shortmess(SHM_FILEINFO)) { - // print full file name if :cd used + // 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; } /* |