mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user