From: Bram Moolenaar Date: Sun, 8 Jul 2018 19:46:56 +0000 (+0200) Subject: patch 8.1.0172: 'viminfofile' option does not behave like a file name X-Git-Tag: v8.1.0172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c229e54a69468722ca2449e807e90445b7479659;p=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) --- diff --git a/src/option.c b/src/option.c index 0cfc39c61..6d861837c 100644 --- 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} diff --git a/src/version.c b/src/version.c index 2821a1b96..40f3b46d0 100644 --- a/src/version.c +++ b/src/version.c @@ -789,6 +789,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 172, /**/ 171, /**/