changeset 14313:37ed47b58f54 v8.1.0172

patch 8.1.0172: 'viminfofile' option does not behave like a file name commit https://github.com/vim/vim/commit/c229e54a69468722ca2449e807e90445b7479659 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 8 21:46:56 2018 +0200 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 https://github.com/vim/vim/issues/3178)
author Christian Brabandt <cb@256bit.org>
date Sun, 08 Jul 2018 22:00:06 +0200
parents 2dc4ef271d56
children 2a5dde9e66a7
files src/option.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -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}
--- a/src/version.c
+++ b/src/version.c
@@ -790,6 +790,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    172,
+/**/
     171,
 /**/
     170,