Skip to content

Commit

Permalink
fix bad merge resulting in t11838 failure
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Feb 26, 2020
1 parent 1d00fe0 commit 5630398
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,12 @@ class ILoop(config: ShellConfig, inOverride: BufferedReader = null,
case Incomplete =>
in.completion.reset()
in.readLine(paste.ContinuePrompt) match {
case null => intp.compileString(code) ; None // EOF, report error
case null =>
// partial input with no input forthcoming,
// so ask again for parse error message.
// This happens at EOF of a :load file.
intp.interpretFinally(code)
None
case line => in.accumulator += line ; loop()
}
}
Expand Down

0 comments on commit 5630398

Please sign in to comment.