summaryrefslogtreecommitdiff
path: root/gocomplete/tests.go
diff options
context:
space:
mode:
Diffstat (limited to 'gocomplete/tests.go')
-rw-r--r--gocomplete/tests.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/gocomplete/tests.go b/gocomplete/tests.go
index 60218a5..3a6a185 100644
--- a/gocomplete/tests.go
+++ b/gocomplete/tests.go
@@ -12,11 +12,11 @@ import (
)
func predictTest(testType string) complete.Predicate {
- return func(last string) []complete.Option {
+ return func(last string) []complete.Matcher {
tests := testNames(testType)
- options := make([]complete.Option, len(tests))
+ options := make([]complete.Matcher, len(tests))
for i := range tests {
- options[i] = complete.Arg(tests[i])
+ options[i] = complete.MatchPrefix(tests[i])
}
return options
}