1
0
forked from aniani/vim

patch 8.2.4754: using cached values after unsetting some environment variables

Problem:    Still using cached values after unsetting some known environment
            variables.
Solution:   Take care of the side effects. (closes #10194)
This commit is contained in:
LemonBoy
2022-04-15 20:50:46 +01:00
committed by Bram Moolenaar
parent 31e5c60a68
commit 7714231bb5
8 changed files with 46 additions and 15 deletions

View File

@@ -1795,7 +1795,7 @@ do_unlet_var(
// Environment variable, normal name or expanded name.
if (*lp->ll_name == '$')
vim_unsetenv(lp->ll_name + 1);
vim_unsetenv_ext(lp->ll_name + 1);
else if (do_unlet(lp->ll_name, forceit) == FAIL)
ret = FAIL;
*name_end = cc;