summaryrefslogtreecommitdiff
path: root/gocomplete/tests.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-05-11 20:48:40 +0300
committerEyal Posener <[email protected]>2017-05-11 20:48:40 +0300
commit115e175c3d254b3a4797607821a0aab6f08058bb (patch)
tree81a786eb45eef5c59f02bb8f731efaa1f926f97b /gocomplete/tests.go
parent967bae76f3132c210e6275653f9b603593973858 (diff)
Change Match to be a function
Diffstat (limited to 'gocomplete/tests.go')
-rw-r--r--gocomplete/tests.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gocomplete/tests.go b/gocomplete/tests.go
index 4be3f0d..d2c32e7 100644
--- a/gocomplete/tests.go
+++ b/gocomplete/tests.go
@@ -21,8 +21,8 @@ func predictTest(funcPrefix ...string) complete.Predictor {
return complete.PredictFunc(func(a complete.Args) (prediction []string) {
tests := testNames(funcPrefix)
for _, t := range tests {
- if m := match.Prefix(t); m.Match(a.Last) {
- prediction = append(prediction, m.String())
+ if match.Prefix(t, a.Last) {
+ prediction = append(prediction, t)
}
}
return