0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44: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:
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

@@ -2656,6 +2656,7 @@ exec_instructions(ectx_T *ectx)
case ISN_SOURCE:
{
int notused;
SOURCING_LNUM = iptr->isn_lnum;
if (may_load_script((int)iptr->isn_arg.number, &notused)
== FAIL)
@@ -3490,7 +3491,7 @@ exec_instructions(ectx_T *ectx)
goto on_error;
break;
case ISN_UNLETENV:
vim_unsetenv(iptr->isn_arg.unlet.ul_name);
vim_unsetenv_ext(iptr->isn_arg.unlet.ul_name);
break;
case ISN_LOCKUNLOCK: