]> granicus.if.org Git - vim/commitdiff
patch 8.1.0172: 'viminfofile' option does not behave like a file name v8.1.0172
authorBram Moolenaar <Bram@vim.org>
Sun, 8 Jul 2018 19:46:56 +0000 (21:46 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 8 Jul 2018 19:46:56 +0000 (21:46 +0200)
Problem:    'viminfofile' option does not behave like a file name.
Solution:   Add the P_EXPAND flag. (closes #3178)

src/option.c
src/version.c

index 0cfc39c6133f8f72a486093921a8c16f1bb538ce..6d861837c4e0143e4769511ca08574858f1bc0c8 100644 (file)
@@ -2997,7 +2997,8 @@ static struct vimoption options[] =
                            {(char_u *)0L, (char_u *)0L}
 #endif
                            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
                            (char_u *)&p_viminfofile, PV_NONE,
                            {(char_u *)"", (char_u *)0L}
index 2821a1b9660c0469f6c0ea82b196edd5e43907f2..40f3b46d023956001d391976fd9c8390ff4c6b3e 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    172,
 /**/
     171,
 /**/