summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-10 16:45:24 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-10 16:45:24 +0100
commitb17ec4d427f9009eff5dbc3184b26d68b0163edb (patch)
tree3f6b652d997cb17c3baba8d784ab48b87c545979
parent82db31c10470b0e27d7039d15c32ed7e9417cc02 (diff)
downloadvim-git-b17ec4d427f9009eff5dbc3184b26d68b0163edb.tar.gz
patch 8.2.2492: command line buffer name cannot be translatedv8.2.2492
Problem: Command line buffer name cannot be translated. Solution: Add _(). (Gabriel Dupras, closes #7812)
-rw-r--r--src/ex_getln.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index faa56e14b..2be8156ea 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -4219,7 +4219,7 @@ open_cmdwin(void)
}
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);
set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL);
curbuf->b_p_ma = TRUE;
diff --git a/src/version.c b/src/version.c
index 9c738bffa..0209fd2b8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2492,
+/**/
2491,
/**/
2490,