diff options
author | Paul Phillips <paulp@improving.org> | 2010-04-15 15:23:49 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-04-15 15:23:49 +0000 |
commit | 348271c8b27af1c29f7705ea2853c934492ee327 (patch) | |
tree | 7b8303088b44c6de0811fe422e94e12246298031 /src | |
parent | c0d1bc031ee67f3caee9bfe01a425850b61e1d16 (diff) | |
download | scala-348271c8b27af1c29f7705ea2853c934492ee327.tar.gz scala-348271c8b27af1c29f7705ea2853c934492ee327.tar.bz2 scala-348271c8b27af1c29f7705ea2853c934492ee327.zip |
A repl corner case. Closes #3298, no review.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/InterpreterLoop.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/InterpreterLoop.scala b/src/compiler/scala/tools/nsc/InterpreterLoop.scala index 9d568418f8..aadb8700de 100644 --- a/src/compiler/scala/tools/nsc/InterpreterLoop.scala +++ b/src/compiler/scala/tools/nsc/InterpreterLoop.scala @@ -527,7 +527,7 @@ class InterpreterLoop(in0: Option[BufferedReader], protected val out: PrintWrite interpretAsPastedTranscript(List(code)) None } - else if (Completion.looksLikeInvocation(code)) { + else if (Completion.looksLikeInvocation(code) && interpreter.mostRecentVar != "") { interpretStartingWith(interpreter.mostRecentVar + code) } else { |