summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-07-03 19:52:51 +0000
committerPaul Phillips <paulp@improving.org>2011-07-03 19:52:51 +0000
commitd858fc14ad79b9c8bbe066aec70ded8fa62b0275 (patch)
tree2dad390100ee9025b0f5445af6ba032dddb0fee5 /src
parent835be39b534accb0d341d0629662f5685ae2cfef (diff)
downloadscala-d858fc14ad79b9c8bbe066aec70ded8fa62b0275.tar.gz
scala-d858fc14ad79b9c8bbe066aec70ded8fa62b0275.tar.bz2
scala-d858fc14ad79b9c8bbe066aec70ded8fa62b0275.zip
Logic bug in repl :paste parsing, no review.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/interpreter/IMain.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/interpreter/IMain.scala b/src/compiler/scala/tools/nsc/interpreter/IMain.scala
index 47e1aa49bb..467805fe36 100644
--- a/src/compiler/scala/tools/nsc/interpreter/IMain.scala
+++ b/src/compiler/scala/tools/nsc/interpreter/IMain.scala
@@ -470,7 +470,7 @@ class IMain(val settings: Settings, protected val out: JPrintWriter) extends Imp
// Oh boy, the parser throws away parens so "(2+2)" is mispositioned.
// So until we can fix the parser we'll have to go trawling.
val adjustment = ((content take lastpos0).reverse takeWhile { ch =>
- ch.isWhitespace || ch == '(' || ch == ')'
+ ch.isWhitespace || ch == '('
}).length
val lastpos = lastpos0 - adjustment