Merge pull request #5909 from eatkins/lazy-console-reader

Make ConsoleReader creation lazy
This commit is contained in:
eugene yokota 2020-10-01 05:34:51 -04:00 committed by GitHub
commit b8673194cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ class SimpleReader private[sbt] (
) extends JLine {
def this(historyPath: Option[File], handleCONT: Boolean, injectThreadSleep: Boolean) =
this(historyPath, handleCONT, Terminal.console)
protected[this] val reader: ConsoleReader =
protected[this] lazy val reader: ConsoleReader =
LineReader.createJLine2Reader(historyPath, terminal)
}