Skip to content

repl: don't blink the opening paren after typing a closing paren #4761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions compiler/src/dotty/tools/repl/JLineTerminal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ final class JLineTerminal extends java.io.Closeable {
.completer(completer)
.highlighter(new Highlighter)
.parser(new Parser)
.variable(SECONDARY_PROMPT_PATTERN, "%M") // A short word explaining what is "missing".
// This is supplied from the EOFError.getMissing() method
.variable(LIST_MAX, 400) // ask user when number of completions exceed this limit (default is 100)
.option(INSERT_TAB, true) // at the beginning of the line, insert tab instead of completing
.option(AUTO_FRESH_LINE, true) // if not at start of line before prompt, move to new line
.variable(SECONDARY_PROMPT_PATTERN, "%M") // A short word explaining what is "missing",
// this is supplied from the EOFError.getMissing() method
.variable(LIST_MAX, 400) // Ask user when number of completions exceed this limit (default is 100).
.variable(BLINK_MATCHING_PAREN, 0L) // Don't blink the opening paren after typing a closing paren.
.option(INSERT_TAB, true) // At the beginning of the line, insert tab instead of completing.
.option(AUTO_FRESH_LINE, true) // if not at start of line before prompt, move to new line.
.build()

lineReader.readLine(prompt)
Expand Down