forked from mirror/readline
fix bugs in PrefixCompleter
This commit is contained in:
parent
e2dc5c8314
commit
a8eaa99c90
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue