[completer] add SegmentAutoComplete

This commit is contained in:
chzyer 2016-04-12 14:04:56 +08:00
parent de49e7f118
commit 52d8a65723
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,12 @@ func SegmentFunc(f func([][]rune, int) [][]rune) AutoCompleter {
return &SegmentComplete{&dumpSegmentCompleter{f}}
}
func SegmentAutoComplete(completer SegmentCompleter) *SegmentComplete {
return &SegmentComplete{
SegmentCompleter: completer,
}
}
type SegmentComplete struct {
SegmentCompleter
}