mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.0110: file name not displayed with ":file"
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)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user