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:
@@ -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, ¬used)
|
||||
== 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:
|
||||
|
Reference in New Issue
Block a user