Skip to content

Commit 0c93c71

Browse files
committed
Merge commit 'd1b6d8b20f' into wip/fresh-merge2
Conflicts: src/compiler/scala/tools/nsc/interpreter/JLineReader.scala
2 parents cf95fb8 + d1b6d8b commit 0c93c71

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/compiler/scala/tools/nsc/interpreter/JLineReader.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ class JLineReader(_completion: => Completion) extends InteractiveReader {
3434
}
3535

3636
class JLineConsoleReader extends ConsoleReader with ConsoleReaderHelper {
37+
// working around protected/trait/java insufficiencies.
38+
def goBack(num: Int): Unit = back(num)
39+
if ((history: History) ne NoHistory)
40+
this setHistory history
41+
3742
def readOneKey(prompt: String) = {
3843
this.print(prompt)
3944
this.flush()
@@ -45,8 +50,6 @@ class JLineReader(_completion: => Completion) extends InteractiveReader {
4550
// A hook for running code after the repl is done initializing.
4651
lazy val postInit: Unit = {
4752
this setBellEnabled false
48-
if ((history: History) ne NoHistory)
49-
this setHistory history
5053

5154
if (completion ne NoCompletion) {
5255
val argCompletor: ArgumentCompleter =

0 commit comments

Comments
 (0)