Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
20827:0b2d6030068c | 20828:db18625d8134 |
---|---|
595 # endif | 595 # endif |
596 # endif | 596 # endif |
597 # endif | 597 # endif |
598 } | 598 } |
599 #endif // UNIX | 599 #endif // UNIX |
600 | |
601 char * | |
602 new_file_message(void) | |
603 { | |
604 return shortmess(SHM_NEW) ? _("[New]") : _("[New File]"); | |
605 } | |
600 | 606 |
601 /* | 607 /* |
602 * buf_write() - write to file "fname" lines "start" through "end" | 608 * buf_write() - write to file "fname" lines "start" through "end" |
603 * | 609 * |
604 * We do our own buffering here because fwrite() is so slow. | 610 * We do our own buffering here because fwrite() is so slow. |
2345 STRCAT(IObuff, _("[Device]")); | 2351 STRCAT(IObuff, _("[Device]")); |
2346 c = TRUE; | 2352 c = TRUE; |
2347 } | 2353 } |
2348 else if (newfile) | 2354 else if (newfile) |
2349 { | 2355 { |
2350 STRCAT(IObuff, shortmess(SHM_NEW) ? _("[New]") : _("[New File]")); | 2356 STRCAT(IObuff, new_file_message()); |
2351 c = TRUE; | 2357 c = TRUE; |
2352 } | 2358 } |
2353 if (no_eol) | 2359 if (no_eol) |
2354 { | 2360 { |
2355 msg_add_eol(); | 2361 msg_add_eol(); |