diff --git a/complete_segment.go b/complete_segment.go index 45cd1f5..5ceadd8 100644 --- a/complete_segment.go +++ b/complete_segment.go @@ -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 }