Skip past func-y objects in REPL, too.

This commit is contained in:
Sage Vaillancourt 2022-03-29 23:01:50 -04:00
parent f48e1bf5c9
commit 92daee1d0d
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ void repl(struct Environment* env)
free(oldBuf); free(oldBuf);
} }
Object o = parseEval(buf, env); Object o = parseEval(buf, env);
if (isError(o, DID_NOT_FIND_SYMBOL)) { if (isFuncy(o) || isError(o, DID_NOT_FIND_SYMBOL)) {
cleanObject(&o); cleanObject(&o);
system(buf); system(buf);
free(buf); free(buf);