File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/compiler/scala/tools/nsc/interpreter Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ class JLineReader(_completion: => Completion) extends InteractiveReader {
34
34
}
35
35
36
36
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
+
37
42
def readOneKey (prompt : String ) = {
38
43
this .print(prompt)
39
44
this .flush()
@@ -45,8 +50,6 @@ class JLineReader(_completion: => Completion) extends InteractiveReader {
45
50
// A hook for running code after the repl is done initializing.
46
51
lazy val postInit : Unit = {
47
52
this setBellEnabled false
48
- if ((history : History ) ne NoHistory )
49
- this setHistory history
50
53
51
54
if (completion ne NoCompletion ) {
52
55
val argCompletor : ArgumentCompleter =
You can’t perform that action at this time.
0 commit comments