diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/interpreter/ILoop.scala | 6 | ||||
-rw-r--r-- | test/files/run/repl-paste-2.check | 3 | ||||
-rw-r--r-- | test/files/run/repl-transcript.check | 3 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala index 7f1066ec97..b249d37006 100644 --- a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala +++ b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala @@ -670,11 +670,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter) } def transcript(start: String) = { - // Printing this message doesn't work very well because it's buried in the - // transcript they just pasted. Todo: a short timer goes off when - // lines stop coming which tells them to hit ctrl-D. - // - // echo("// Detected repl transcript paste: ctrl-D to finish.") + echo("\n// Detected repl transcript paste: ctrl-D to finish.\n") apply(Iterator(start) ++ readWhile(_.trim != PromptString.trim)) } } diff --git a/test/files/run/repl-paste-2.check b/test/files/run/repl-paste-2.check index 435592567d..18bd6d2434 100644 --- a/test/files/run/repl-paste-2.check +++ b/test/files/run/repl-paste-2.check @@ -4,6 +4,9 @@ Type :help for more information. scala> scala> scala> 0123 + +// Detected repl transcript paste: ctrl-D to finish. + res4: Int = 0123 scala> 123 diff --git a/test/files/run/repl-transcript.check b/test/files/run/repl-transcript.check index 03162451b6..6d22353882 100644 --- a/test/files/run/repl-transcript.check +++ b/test/files/run/repl-transcript.check @@ -4,6 +4,9 @@ Type :help for more information. scala> scala> scala> class Bippity + +// Detected repl transcript paste: ctrl-D to finish. + defined class Bippity scala> def f = new Bippity |