mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.0.1001: setting 'encoding' makes 'printheader' invalid
Problem: Setting 'encoding' makes 'printheader' invalid. Solution: Do not translate the default value of 'printheader'. (Yasuhiro Matsumoto, closes #2026)
This commit is contained in:
parent
13ebb03e75
commit
0903d56f5c
@ -2196,7 +2196,9 @@ static struct vimoption options[] =
|
||||
{"printheader", "pheader", P_STRING|P_VI_DEF|P_GETTEXT,
|
||||
#ifdef FEAT_PRINTER
|
||||
(char_u *)&p_header, PV_NONE,
|
||||
{(char_u *)N_("%<%f%h%m%=Page %N"), (char_u *)0L}
|
||||
/* untranslated to avoid problems when 'encoding'
|
||||
* is changed */
|
||||
{(char_u *)"%<%f%h%m%=Page %N", (char_u *)0L}
|
||||
#else
|
||||
(char_u *)NULL, PV_NONE,
|
||||
{(char_u *)NULL, (char_u *)0L}
|
||||
|
@ -769,6 +769,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1001,
|
||||
/**/
|
||||
1000,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user