Fix how parse_expr was sourcing the repl result.
@@ -4668,7 +4668,8 @@ int lily_parse_expr(lily_state *s, const char *name, char *str,
lily_pop_lex_entry(parser->lex);
if (sym && text) {
- lily_value *reg = s->regs_from_main[sym->reg_spot];
+ /* This grabs the symbol from __main__. */
+ lily_value *reg = s->call_chain->next->locals[sym->reg_spot];
lily_msgbuf *msgbuf = parser->msgbuf;
lily_mb_flush(msgbuf);
