diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-08 21:46:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-08 21:46:56 +0200 |
commit | c229e54a69468722ca2449e807e90445b7479659 (patch) | |
tree | b456c037af986e4e663c009ac48a836b31ebcdbf /src/option.c | |
parent | 875cf8789426cc258d85358ea2c86744a5a87b16 (diff) | |
download | vim-git-c229e54a69468722ca2449e807e90445b7479659.tar.gz |
patch 8.1.0172: 'viminfofile' option does not behave like a file namev8.1.0172
Problem: 'viminfofile' option does not behave like a file name.
Solution: Add the P_EXPAND flag. (closes #3178)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
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} |