0
0
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:
Bram Moolenaar
2020-06-12 22:31:00 +02:00
parent 5055c56cfb
commit 722e505d1a
7 changed files with 15 additions and 5 deletions

View File

@@ -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)