patch 9.1.0362: expanding rc config files does not work well

Commit: 
https://github.com/vim/vim/commit/b09fa35a040af87e20c9cb25b78064aace0e63e9
Author: Christian Brabandt <c...@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 <c...@256bit.org>

diff --git a/src/option.c b/src/option.c
index 1bb9e29ba..0cd282385 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 402ab5266..0dd9db066 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    362,
 /**/
     361,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1ryWne-006Hnq-OJ%40256bit.org.

Raspunde prin e-mail lui