diff --git a/ui.go b/ui.go index cfaa2b0..97b36fb 100644 --- a/ui.go +++ b/ui.go @@ -870,6 +870,8 @@ func (ui *ui) readEvent(ch chan<- expr, ev termbox.Event) { ch <- draw ui.keyAcc = nil ui.keyCount = nil + ui.menuBuf = nil + return } ui.keyAcc = append(ui.keyAcc, []rune(val)...) }