fix: call hinter for hint text handler

cancel-commander
TorchedSammy 2022-09-02 22:19:30 -04:00
parent 1eed4cc7ee
commit 59cec0ffa5
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

2
rl.go
View File

@ -55,7 +55,7 @@ func newLineReader(prompt string, noHist bool) *lineReader {
return []rune{}
}
retVal, err := rt.Call1(l.MainThread(), rt.FunctionValue(highlighter),
retVal, err := rt.Call1(l.MainThread(), rt.FunctionValue(hinter),
rt.StringValue(string(line)), rt.IntValue(int64(pos)))
if err != nil {
fmt.Println(err)