diff --git a/complete.go b/complete.go index 52035a3..c767377 100644 --- a/complete.go +++ b/complete.go @@ -66,7 +66,7 @@ func (o *opCompleter) OnComplete() { buf := o.op.buf rs := buf.Runes() - if o.IsInCompleteMode() && runes.Equal(rs, o.candidateSource) { + if o.IsInCompleteMode() && o.candidateSource != nil && runes.Equal(rs, o.candidateSource) { o.EnterCompleteSelectMode() o.doSelect() return