diff options
Diffstat (limited to 'src/bufwrite.c')
-rw-r--r-- | src/bufwrite.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bufwrite.c b/src/bufwrite.c index f1895518b..4be48e28e 100644 --- a/src/bufwrite.c +++ b/src/bufwrite.c @@ -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) |