Skip to content

Commit

Permalink
[completer] Fixes issue chzyer#53
Browse files Browse the repository at this point in the history
  • Loading branch information
Ante authored and Ante committed May 9, 2016
1 parent 8fbe9ea commit 83a3f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() && len(rs) > 0 && runes.Equal(rs, o.candidateSource) {
o.EnterCompleteSelectMode()
o.doSelect()
return
Expand Down

0 comments on commit 83a3f74

Please sign in to comment.