fix bugs in PrefixCompleter

This commit is contained in:
Cheney 2015-09-27 00:10:26 +08:00
parent e2dc5c8314
commit a8eaa99c90
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func (p *PrefixCompleter) Do(line []rune, pos int) (newLine [][]rune, offset int
tmpLine := make([]rune, 0, len(line)) tmpLine := make([]rune, 0, len(line))
for i := offset; i < len(line); i++ { for i := offset; i < len(line); i++ {
if line[offset] == ' ' { if line[i] == ' ' {
continue continue
} }