mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.0966: 'shortmess' flag "n" not used in two places
Problem: 'shortmess' flag "n" not used in two places. Solution: Make use of the "n" flag consistent. (Nick Jensen, closes #6245, closes #6244)
This commit is contained in:
@@ -598,6 +598,12 @@ set_file_time(
|
||||
}
|
||||
#endif // UNIX
|
||||
|
||||
char *
|
||||
new_file_message(void)
|
||||
{
|
||||
return shortmess(SHM_NEW) ? _("[New]") : _("[New File]");
|
||||
}
|
||||
|
||||
/*
|
||||
* buf_write() - write to file "fname" lines "start" through "end"
|
||||
*
|
||||
@@ -2347,7 +2353,7 @@ restore_backup:
|
||||
}
|
||||
else if (newfile)
|
||||
{
|
||||
STRCAT(IObuff, shortmess(SHM_NEW) ? _("[New]") : _("[New File]"));
|
||||
STRCAT(IObuff, new_file_message());
|
||||
c = TRUE;
|
||||
}
|
||||
if (no_eol)
|
||||
|
Reference in New Issue
Block a user