From 363d2bda2487ba56e2d252f7a4e30452c98b5c71 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Thu, 10 Oct 2013 16:31:28 +0900 Subject: [PATCH] Also reset the context env when updating interaction-environment. Fixes issue #200. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index ca46d5bd..52821f33 100644 --- a/main.c +++ b/main.c @@ -202,6 +202,7 @@ static sexp sexp_load_standard_params (sexp ctx, sexp e) { #endif res = sexp_make_env(ctx); sexp_env_parent(res) = e; + sexp_context_env(ctx) = res; sexp_set_parameter(ctx, sexp_global(ctx, SEXP_G_META_ENV), sexp_global(ctx, SEXP_G_INTERACTION_ENV_SYMBOL), res); sexp_gc_release3(ctx); return res;