Skip to content

Commit c229e54

Browse files
committed
patch 8.1.0172: 'viminfofile' option does not behave like a file name
Problem: 'viminfofile' option does not behave like a file name. Solution: Add the P_EXPAND flag. (closes #3178)
1 parent 875cf87 commit c229e54

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/option.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2997,7 +2997,8 @@ static struct vimoption options[] =
29972997
{(char_u *)0L, (char_u *)0L}
29982998
#endif
29992999
SCRIPTID_INIT},
3000-
{"viminfofile", "vif", P_STRING|P_ONECOMMA|P_NODUP|P_SECURE|P_VI_DEF,
3000+
{"viminfofile", "vif", P_STRING|P_EXPAND|P_ONECOMMA|P_NODUP
3001+
|P_SECURE|P_VI_DEF,
30013002
#ifdef FEAT_VIMINFO
30023003
(char_u *)&p_viminfofile, PV_NONE,
30033004
{(char_u *)"", (char_u *)0L}

src/version.c

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

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
172,
792794
/**/
793795
171,
794796
/**/

0 commit comments

Comments
 (0)