diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-04-27 10:40:02 +1000 |
---|---|---|
committer | Adriaan Moors <adriaan@lightbend.com> | 2017-01-09 16:30:46 -0800 |
commit | 2113a7c88e2a167cf05ff199ee8dc76f12449fea (patch) | |
tree | 4ed8e79be7d0b8dea97d7eb4bb3a30850f575e18 /src/repl-jline | |
parent | 4f5c30e10a16697edbe7bb6b4719ff09f5c3900b (diff) | |
download | scala-2113a7c88e2a167cf05ff199ee8dc76f12449fea.tar.gz scala-2113a7c88e2a167cf05ff199ee8dc76f12449fea.tar.bz2 scala-2113a7c88e2a167cf05ff199ee8dc76f12449fea.zip |
SI-9762 Update to JLine 2.14.3
Cherry-picked 365ac03 (and bumped from 2.14.1 to 2.14.3)
Motivated by the improvements to multi-byte character handling.
Screencast showing the reported bug is fixed:
http://g.recordit.co/ie1Z367NUl.gif
Here's the changelog since JLine 2.12.1:
https://github.com/jline/jline2/compare/jline-2.12.1...jline-2.14.3
I needed to disable a new, on-by-default feature in JLine so that
it didn't add a " " after completing the token `equals` in
`foo.equa<TAB>`.
Diffstat (limited to 'src/repl-jline')
-rw-r--r-- | src/repl-jline/scala/tools/nsc/interpreter/jline/JLineReader.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/repl-jline/scala/tools/nsc/interpreter/jline/JLineReader.scala b/src/repl-jline/scala/tools/nsc/interpreter/jline/JLineReader.scala index 0983f24fbb..7b4d9dc8c1 100644 --- a/src/repl-jline/scala/tools/nsc/interpreter/jline/JLineReader.scala +++ b/src/repl-jline/scala/tools/nsc/interpreter/jline/JLineReader.scala @@ -11,10 +11,9 @@ import java.util.{Collection => JCollection, List => JList} import _root_.jline.{console => jconsole} import jline.console.ConsoleReader -import jline.console.completer.{CompletionHandler, Completer, ArgumentCompleter} +import jline.console.completer.{CandidateListCompletionHandler, CompletionHandler, Completer, ArgumentCompleter} import jconsole.history.{History => JHistory} - import scala.tools.nsc.interpreter import scala.tools.nsc.interpreter.{Completion, JLineCompletion, NoCompletion} import scala.tools.nsc.interpreter.Completion.Candidates @@ -136,6 +135,9 @@ private class JLineConsoleReader extends jconsole.ConsoleReader with interpreter newCursor } } + getCompletionHandler match { + case clch: CandidateListCompletionHandler => clch.setPrintSpaceAfterFullCompletion(false) + } // a last bit of nastiness: parsing help depending on the flavor of completer (fixme) completion match { |