changeset 23899:421c130783c5 v8.2.2492

patch 8.2.2492: command line buffer name cannot be translated Commit: https://github.com/vim/vim/commit/b17ec4d427f9009eff5dbc3184b26d68b0163edb Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 10 16:45:24 2021 +0100 patch 8.2.2492: command line buffer name cannot be translated Problem: Command line buffer name cannot be translated. Solution: Add _(). (Gabriel Dupras, closes https://github.com/vim/vim/issues/7812)
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Feb 2021 17:00:04 +0100
parents 92e488d863a3
children fa6db32856ac
files src/ex_getln.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,