Use new name exitChecker instead of old exitor

This commit is contained in:
VonC 2020-02-21 17:06:13 +01:00
parent 9bef59299a
commit 0bf3c2e7f9

View File

@ -210,7 +210,7 @@ func (p *Prompt) handleKeyBinding(key Key) bool {
kb.Fn(p.buf)
}
}
if p.exitor != nil && p.exitor(p.buf.Text()) {
if p.exitChecker != nil && p.exitChecker(p.buf.Text()) {
shouldExit = true
}
return shouldExit