diff --git a/prompt.go b/prompt.go index 2871891..f82beaa 100644 --- a/prompt.go +++ b/prompt.go @@ -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