1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2018-07-08 21:46:56 +02:00
parent 875cf87894
commit c229e54a69
2 changed files with 4 additions and 1 deletions

View File

@@ -2997,7 +2997,8 @@ static struct vimoption options[] =
{(char_u *)0L, (char_u *)0L} {(char_u *)0L, (char_u *)0L}
#endif #endif
SCRIPTID_INIT}, SCRIPTID_INIT},
{"viminfofile", "vif", P_STRING|P_ONECOMMA|P_NODUP|P_SECURE|P_VI_DEF, {"viminfofile", "vif", P_STRING|P_EXPAND|P_ONECOMMA|P_NODUP
|P_SECURE|P_VI_DEF,
#ifdef FEAT_VIMINFO #ifdef FEAT_VIMINFO
(char_u *)&p_viminfofile, PV_NONE, (char_u *)&p_viminfofile, PV_NONE,
{(char_u *)"", (char_u *)0L} {(char_u *)"", (char_u *)0L}

View File

@@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
172,
/**/ /**/
171, 171,
/**/ /**/