mirror of https://github.com/chzyer/readline.git
fixed
This commit is contained in:
parent
f2a9cba613
commit
03359d475e
|
@ -3,6 +3,8 @@ package readline
|
|||
import (
|
||||
"bytes"
|
||||
"strings"
|
||||
|
||||
"github.com/chzyer/readline/runes"
|
||||
)
|
||||
|
||||
type PrefixCompleterInterface interface {
|
||||
|
@ -73,7 +75,7 @@ func (p *PrefixCompleter) Do(line []rune, pos int) (newLine [][]rune, offset int
|
|||
}
|
||||
|
||||
func Do(p PrefixCompleterInterface, line []rune, pos int) (newLine [][]rune, offset int) {
|
||||
line = line[:pos]
|
||||
line = runes.TrimSpaceLeft(line[:pos])
|
||||
goNext := false
|
||||
var lineCompleter PrefixCompleterInterface
|
||||
for _, child := range p.GetChildren() {
|
||||
|
|
Loading…
Reference in New Issue