0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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

@@ -3651,7 +3651,7 @@ fileinfo(
#ifdef FEAT_QUICKFIX
&& !bt_dontwrite(curbuf)
#endif
? _("[New file]") : "",
? new_file_message() : "",
(curbuf->b_flags & BF_READERR) ? _("[Read errors]") : "",
curbuf->b_p_ro ? (shortmess(SHM_RO) ? _("[RO]")
: _("[readonly]")) : "",