changeset 35019:84846a30bfa8 v9.1.0362

patch 9.1.0362: expanding rc config files does not work well Commit: https://github.com/vim/vim/commit/b09fa35a040af87e20c9cb25b78064aace0e63e9 Author: Christian Brabandt <cb@256bit.org> Date: Sun Apr 21 14:52:20 2024 +0200 patch 9.1.0362: expanding rc config files does not work well 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>
author Christian Brabandt <cb@256bit.org>
date Sun, 21 Apr 2024 15:00:06 +0200
parents 0dfd70daf09d
children cc3240db8af8
files src/option.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
--- 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,