Skip to content

Commit

Permalink
add comment about EvalOne's in interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jul 16, 2024
1 parent c4f454c commit c09493c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repl/repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c09493c

Please sign in to comment.