clear keybind list when not found

This commit is contained in:
Gokcehan 2018-01-11 19:44:02 +03:00
parent 158b1b401b
commit fd3a983b29

1
ui.go
View File

@ -725,6 +725,7 @@ func (ui *ui) readEvent(ch chan<- multiExpr, ev termbox.Event) {
ch <- multiExpr{redraw, 1} ch <- multiExpr{redraw, 1}
ui.keyAcc = nil ui.keyAcc = nil
ui.keyCount = nil ui.keyCount = nil
ui.menuBuf = nil
case 1: case 1:
if ok { if ok {
if len(ui.keyCount) > 0 { if len(ui.keyCount) > 0 {