mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.2492: command line buffer name cannot be translated
Problem: Command line buffer name cannot be translated. Solution: Add _(). (Gabriel Dupras, closes #7812)
This commit is contained in:
@@ -4219,7 +4219,7 @@ open_cmdwin(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf);
|
apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf);
|
||||||
(void)setfname(curbuf, (char_u *)"[Command Line]", NULL, TRUE);
|
(void)setfname(curbuf, (char_u *)_("[Command Line]"), NULL, TRUE);
|
||||||
apply_autocmds(EVENT_BUFFILEPOST, NULL, NULL, FALSE, curbuf);
|
apply_autocmds(EVENT_BUFFILEPOST, NULL, NULL, FALSE, curbuf);
|
||||||
set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL);
|
set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL);
|
||||||
curbuf->b_p_ma = TRUE;
|
curbuf->b_p_ma = TRUE;
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2492,
|
||||||
/**/
|
/**/
|
||||||
2491,
|
2491,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user