diff options
Diffstat (limited to 'gocomplete/tests.go')
| -rw-r--r-- | gocomplete/tests.go | 4 |
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 |
