mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
fixing bug in interaction-environment binding for -q quick repl
This commit is contained in:
parent
a3f5b10d62
commit
2b10080f64
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -460,7 +460,7 @@ void run_main (int argc, char **argv) {
|
|||
tmp = check_exception(ctx, sexp_eval_string(ctx, impmod, -1, (c=='x' ? sexp_global(ctx, SEXP_G_META_ENV) : env)));
|
||||
free(impmod);
|
||||
if (c == 'x') {
|
||||
sexp_set_parameter(ctx, sexp_global(ctx, SEXP_G_META_ENV), sexp_global(ctx, SEXP_G_INTERACTION_ENV_SYMBOL), env);
|
||||
sexp_set_parameter(ctx, sexp_global(ctx, SEXP_G_META_ENV), sexp_global(ctx, SEXP_G_INTERACTION_ENV_SYMBOL), tmp);
|
||||
sexp_context_env(ctx) = env = tmp;
|
||||
tmp = sexp_param_ref(ctx, env, sexp_global(ctx, SEXP_G_CUR_OUT_SYMBOL));
|
||||
if (tmp != NULL && !sexp_oportp(tmp))
|
||||
|
|
Loading…
Add table
Reference in a new issue