]> granicus.if.org Git - vim/commitdiff
patch 8.2.2492: command line buffer name cannot be translated v8.2.2492
authorBram Moolenaar <Bram@vim.org>
Wed, 10 Feb 2021 15:45:24 +0000 (16:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 10 Feb 2021 15:45:24 +0000 (16:45 +0100)
Problem:    Command line buffer name cannot be translated.
Solution:   Add _(). (Gabriel Dupras, closes #7812)

src/ex_getln.c
src/version.c

index faa56e14b6e225cfb1161c3323f4bdfa9512f7a9..2be8156eaa5ddf7f8adaefebf7f5a7a040708dc1 100644 (file)
@@ -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;
index 9c738bffa52ea6a1601542a0cc3f01e679b3eba9..0209fd2b86f1f9b3e41f567bc088c5aa3f575c8e 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2492,
 /**/
     2491,
 /**/