This commit is contained in:
chzyer 2016-04-21 10:06:19 +08:00
parent fd07ffef1b
commit 1e0917c739
2 changed files with 2 additions and 2 deletions

View File

@ -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
} }

View File

@ -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)
} }