Problem: 'shortmess' flag "n" not used in two places.
Solution: Make use of the "n" flag consistent. (Nick Jensen, closes #6245,
closes #6244)
#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]")) : "",
}
#endif // UNIX
+ char *
+new_file_message(void)
+{
+ return shortmess(SHM_NEW) ? _("[New]") : _("[New File]");
+}
+
/*
* buf_write() - write to file "fname" lines "start" through "end"
*
}
else if (newfile)
{
- STRCAT(IObuff, shortmess(SHM_NEW) ? _("[New]") : _("[New File]"));
+ STRCAT(IObuff, new_file_message());
c = TRUE;
}
if (no_eol)
}
}
if (dir_of_file_exists(fname))
- filemess(curbuf, sfname, (char_u *)_("[New File]"), 0);
+ filemess(curbuf, sfname,
+ (char_u *)new_file_message(), 0);
else
filemess(curbuf, sfname,
(char_u *)_("[New DIRECTORY]"), 0);
/* bufwrite.c */
+char *new_file_message(void);
int buf_write(buf_T *buf, char_u *fname, char_u *sfname, linenr_T start, linenr_T end, exarg_T *eap, int append, int forceit, int reset_changed, int filtering);
/* vim: set ft=c : */
|~+0#4040ff13&| @35||+1#0000000&|5+0&&|3| @21|╚+0#0000001#ffd7ff255|═@9|╝| +0#0000000#ffffff0
|~+0#4040ff13&| @35||+1#0000000&|5+0&&|4| @34
|f+3&&|o@1| @15|0|,|0|-|1| @9|A|l@1| |[+1&&|N|o| |N|a|m|e|]| |[|+|]| @5|4|6|,|1| @10|4|8|%
-|"+0&&|f|o@1|"| |[|N|e|w| |F|i|l|e|]| @58
+|"+0&&|f|o@1|"| |[|N|e|w|]| @63
|~| @73
|~| @73
|~| @73
-|"+0#0000000&|a|"| |[|N|e|w| |F|i|l|e|]| @42|0|,|0|-|1| @8|A|l@1|
+|"+0#0000000&|a|"| |[|N|e|w|]| @47|0|,|0|-|1| @8|A|l@1|
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 966,
/**/
965,
/**/