Skip to content

Commit ad02512

Browse files
authored
Merge pull request #5298 from nrjais/repl-escape-issue
Fix unescaping of escape sequences by jline in REPL
2 parents f758994 + 2024fe8 commit ad02512

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/repl/JLineTerminal.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ final class JLineTerminal(needsTerminal: Boolean) extends java.io.Closeable {
6262
.variable(BLINK_MATCHING_PAREN, 0L) // Don't blink the opening paren after typing a closing paren.
6363
.option(INSERT_TAB, true) // At the beginning of the line, insert tab instead of completing.
6464
.option(AUTO_FRESH_LINE, true) // if not at start of line before prompt, move to new line.
65+
.option(DISABLE_EVENT_EXPANSION, true) // don't process escape sequences in input
6566
.build()
6667

6768
lineReader.readLine(prompt)

0 commit comments

Comments
 (0)