fixes crash in nil completer #8

This commit is contained in:
Cheney 2015-10-03 14:15:19 +08:00
parent e89699832b
commit 4dc2ce7141
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ func (o *Operation) ioloop() {
o.buf.Refresh(nil) o.buf.Refresh(nil)
} }
case CharTab: case CharTab:
if o.opCompleter == nil { if o.cfg.AutoComplete == nil {
o.t.Bell()
break break
} }
o.OnComplete() o.OnComplete()