From 0bf3c2e7f96ea5c5c08605638a89241576d7f29e Mon Sep 17 00:00:00 2001 From: VonC Date: Fri, 21 Feb 2020 17:06:13 +0100 Subject: [PATCH] Use new name exitChecker instead of old exitor --- prompt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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