comparison src/ex_getln.c @ 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 a91f3147d06e
children 93b401236991
comparison
equal deleted inserted replaced
23898:92e488d863a3 23899:421c130783c5
4217 cmdwin_type = 0; 4217 cmdwin_type = 0;
4218 return Ctrl_C; 4218 return Ctrl_C;
4219 } 4219 }
4220 4220
4221 apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf); 4221 apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf);
4222 (void)setfname(curbuf, (char_u *)"[Command Line]", NULL, TRUE); 4222 (void)setfname(curbuf, (char_u *)_("[Command Line]"), NULL, TRUE);
4223 apply_autocmds(EVENT_BUFFILEPOST, NULL, NULL, FALSE, curbuf); 4223 apply_autocmds(EVENT_BUFFILEPOST, NULL, NULL, FALSE, curbuf);
4224 set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL); 4224 set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL);
4225 curbuf->b_p_ma = TRUE; 4225 curbuf->b_p_ma = TRUE;
4226 #ifdef FEAT_FOLDING 4226 #ifdef FEAT_FOLDING
4227 curwin->w_p_fen = FALSE; 4227 curwin->w_p_fen = FALSE;