To: vim_dev@googlegroups.com Subject: Patch 8.2.2492 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2492 Problem: Command line buffer name cannot be translated. Solution: Add _(). (Gabriel Dupras, closes #7812) Files: src/ex_getln.c *** ../vim-8.2.2491/src/ex_getln.c 2021-02-06 18:08:39.891834143 +0100 --- src/ex_getln.c 2021-02-10 16:43:05.575784090 +0100 *************** *** 4219,4225 **** } apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf); ! (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; --- 4219,4225 ---- } apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf); ! (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; *** ../vim-8.2.2491/src/version.c 2021-02-10 14:55:46.261748696 +0100 --- src/version.c 2021-02-10 16:45:01.631508872 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2492, /**/ -- WOMAN: Dennis, there's some lovely filth down here. Oh -- how d'you do? ARTHUR: How do you do, good lady. I am Arthur, King of the Britons. Who's castle is that? WOMAN: King of the who? The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///