mirror of https://github.com/sbt/sbt.git
Merge pull request #4990 from eatkins/exclude-semicolons
Filter single semicolons from tab completions
This commit is contained in:
commit
c06781aa61
|
|
@ -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