Skip to content

Commit 0903d56

Browse files
committed
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)
1 parent 13ebb03 commit 0903d56

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/option.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,9 @@ static struct vimoption options[] =
21962196
{"printheader", "pheader", P_STRING|P_VI_DEF|P_GETTEXT,
21972197
#ifdef FEAT_PRINTER
21982198
(char_u *)&p_header, PV_NONE,
2199-
{(char_u *)N_("%<%f%h%m%=Page %N"), (char_u *)0L}
2199+
/* untranslated to avoid problems when 'encoding'
2200+
* is changed */
2201+
{(char_u *)"%<%f%h%m%=Page %N", (char_u *)0L}
22002202
#else
22012203
(char_u *)NULL, PV_NONE,
22022204
{(char_u *)NULL, (char_u *)0L}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1001,
772774
/**/
773775
1000,
774776
/**/

0 commit comments

Comments
 (0)