1
0
forked from aniani/vim

patch 9.1.1163: $MYVIMDIR is set too late

Problem:  $MYVIMDIR is set too late and not available while sourcing
          runtime files (Maxim Kim, after v9.1.1159)
Solution: Also set it when $MYVIMRC file is found

fixes: #16764
closes: #16767

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-03-01 16:30:33 +01:00
parent 7003a5d63f
commit 1a741d3cb8
5 changed files with 20 additions and 7 deletions

View File

@@ -8420,6 +8420,8 @@ vimrc_found(char_u *fname, char_u *envname)
vim_setenv(envname, p);
vim_free(p);
}
// Set $MYVIMDIR
export_myvimdir();
}
else if (dofree)
vim_free(p);