mirror of https://github.com/sbt/sbt.git
Filter single semicolons from tab completions
Fixes https://github.com/sbt/sbt/issues/4989.
This commit is contained in:
parent
110f54a044
commit
dcb8e18f0e
|
|
@ -89,7 +89,10 @@ object JLineCompletion {
|
|||
(insert.toSeq, display.toSeq.sorted)
|
||||
}
|
||||
|
||||
def appendNonEmpty(set: Set[String], add: String) = if (add.trim.isEmpty) set else set + add
|
||||
def appendNonEmpty(set: Set[String], add: String) = {
|
||||
val trimmed = add.trim
|
||||
if (trimmed.isEmpty || trimmed == ";") set else set + add
|
||||
}
|
||||
|
||||
def customCompletor(
|
||||
f: (String, Int) => (Seq[String], Seq[String])
|
||||
|
|
|
|||
Loading…
Reference in New Issue