Merge 33748ac28d
into 82a9122745
This commit is contained in:
commit
f69840c492
|
@ -188,3 +188,9 @@ func NewCompletionManager(completer Completer, max uint16) *CompletionManager {
|
|||
verticalScroll: 0,
|
||||
}
|
||||
}
|
||||
|
||||
var _ Completer = NoopCompleter
|
||||
|
||||
func NoopCompleter(_ Document) []Suggest {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -204,3 +204,9 @@ func TestFormatText(t *testing.T) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestNoopCompleter(t *testing.T) {
|
||||
if NoopCompleter(Document{}) != nil {
|
||||
t.Errorf("NoopCompleter should return nil")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue