Patch 8.2.2492

4 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 10, 2021, 10:46:07 AM2/10/21
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages