mirror of https://github.com/sbt/sbt.git
Temporary fix for #7371
This fix disables vi-style effects (most notably parenthesis matching) if the terminal is inside emacs. The proper fix is to update to JLine 3.24.0 where this check has been implemented in JLine proper.
This commit is contained in:
parent
25f2ea03ea
commit
126d2419bd
|
|
@ -110,6 +110,11 @@ object LineReader {
|
|||
override def readLine(prompt: String, mask: Option[Char]): Option[String] = {
|
||||
val term = JLine3(terminal)
|
||||
val reader = LineReaderBuilder.builder().terminal(term).completer(completer(parser)).build()
|
||||
|
||||
if (Util.isEmacs) {
|
||||
reader.setKeyMap(JLineReader.SAFE)
|
||||
}
|
||||
|
||||
try {
|
||||
inputrcFileContents.foreach { bytes =>
|
||||
InputRC.configure(
|
||||
|
|
|
|||
Loading…
Reference in New Issue