From c09493cc02be18a857bf76c8ed1d51ada6561993 Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Mon, 15 Jul 2024 17:18:24 -0700 Subject: [PATCH] add comment about EvalOne's in interactive mode --- repl/repl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/repl/repl.go b/repl/repl.go index 9fc1240f..e123fc29 100644 --- a/repl/repl.go +++ b/repl/repl.go @@ -73,6 +73,7 @@ func Interactive(in io.Reader, out io.Writer, options Options) { return } l := prev + scanner.Text() + // errors are already logged and this is the only case that can get contNeeded (EOL instead of EOF mode) contNeeded, _ := EvalOne(s, macroState, l, out, options) if contNeeded { prev = l + "\n"