mirror of https://github.com/sbt/sbt.git
minor cleanup of previous commit: var->val in sbt.JLine
This commit is contained in:
parent
4ad81e9d04
commit
89ad7d720a
|
|
@ -52,7 +52,7 @@ abstract class JLine extends LineReader
|
|||
}
|
||||
|
||||
private[this] def handleMultilinePrompt(prompt: String): String = {
|
||||
var lines = """\r?\n""".r.split(prompt)
|
||||
val lines = """\r?\n""".r.split(prompt)
|
||||
lines.size match {
|
||||
case 0 | 1 => prompt
|
||||
case _ => reader.printString(lines.init.mkString("\n") + "\n"); lines.last;
|
||||
|
|
|
|||
Loading…
Reference in New Issue