diff --git a/complete_helper.go b/complete_helper.go index 82926dd..baf7b90 100644 --- a/complete_helper.go +++ b/complete_helper.go @@ -46,7 +46,7 @@ func (p *PrefixCompleter) Do(line []rune, pos int) (newLine [][]rune, offset int tmpLine := make([]rune, 0, len(line)) for i := offset; i < len(line); i++ { - if line[offset] == ' ' { + if line[i] == ' ' { continue }