diff options
author | Christian Brabandt <cb@256bit.org> | 2024-04-21 14:52:20 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-21 14:55:36 +0200 |
commit | b09fa35a040af87e20c9cb25b78064aace0e63e9 (patch) | |
tree | 5365bf0ae01b7a64dde4ab41fbeec321af71adaa | |
parent | 5eaa4d98f79dfda65673db5c7b7f84be82ffec02 (diff) |
patch 9.1.0362: expanding rc config files does not work wellv9.1.0362
Problem: expanding rc config files does not work well
(Michał Sieroń, after v9.1.0327)
Solution: initialize chartab option, required to expand
evironment variables
fixes: #14597
Co-authored-by: author
Signed-off-by: author
Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | src/option.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 1bb9e29bae..0cd2823851 100644 --- a/src/option.c +++ b/src/option.c @@ -384,6 +384,8 @@ set_init_xdg_rtp(void) char_u *xdg_rtp = NULL; char_u *vimrc_xdg = NULL; + // initialize chartab, so we can expand $HOME + (void)init_chartab(); vimrc1 = expand_env_save((char_u *)USR_VIMRC_FILE); vimrc2 = expand_env_save((char_u *)USR_VIMRC_FILE2); diff --git a/src/version.c b/src/version.c index 402ab52665..0dd9db066a 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 362, +/**/ 361, /**/ 360, |