mirror of https://github.com/chzyer/readline.git
fix typo
This commit is contained in:
parent
fd07ffef1b
commit
1e0917c739
|
@ -28,7 +28,7 @@ func main() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
cmds = append(cmds, line)
|
cmds = append(cmds, line)
|
||||||
if !strings.Contains(line, ";") {
|
if !strings.HasSuffix(line, ";") {
|
||||||
rl.SetPrompt(">>> ")
|
rl.SetPrompt(">>> ")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,7 +152,7 @@ func (i *Instance) SetMaskRune(r rune) {
|
||||||
i.Operation.SetMaskRune(r)
|
i.Operation.SetMaskRune(r)
|
||||||
}
|
}
|
||||||
|
|
||||||
// change hisotry persistence in runtime
|
// change history persistence in runtime
|
||||||
func (i *Instance) SetHistoryPath(p string) {
|
func (i *Instance) SetHistoryPath(p string) {
|
||||||
i.Operation.SetHistoryPath(p)
|
i.Operation.SetHistoryPath(p)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue