Mercurial > vim
diff src/bufwrite.c @ 20828:db18625d8134 v8.2.0966
patch 8.2.0966: 'shortmess' flag "n" not used in two places
Commit: https://github.com/vim/vim/commit/722e505d1a55dfde5ab62241d10da91d2e10c3c1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 12 22:31:00 2020 +0200
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 https://github.com/vim/vim/issues/6245,
closes #6244)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Jun 2020 22:45:04 +0200 |
parents | 4481f3b29fc5 |
children | e82579016863 |
line wrap: on
line diff
--- 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)