mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
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)
fc0896093c
closes #8817
closes #8873
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user