Skip to content

Commit d134d81

Browse files
authored
jline history: keep entire history (10k entries) in memory (mpollmeier#184)
default is only 500... see also: https://github.com/jline/jline3/wiki/History
1 parent 4700f61 commit d134d81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/replpp/JLineTerminal.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class JLineTerminal extends java.io.Closeable {
9292
.highlighter(new Highlighter)
9393
.parser(new Parser)
9494
.variable(HISTORY_FILE, s"$userHome/.dotty_history") // Save history to file
95+
.variable(HISTORY_SIZE, 10000) // MP: adapted here; keep entire history file in memory - default is only 500... see DefaultHistory.DEFAULT_HISTORY_SIZE
9596
.variable(SECONDARY_PROMPT_PATTERN, "%M") // A short word explaining what is "missing",
9697
// this is supplied from the EOFError.getMissing() method
9798
.variable(LIST_MAX, 400) // Ask user when number of completions exceed this limit (default is 100).

0 commit comments

Comments
 (0)