From cf79726d212d34a336f3ed3506d0cc8ca240786d Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Fri, 2 Oct 2020 21:30:31 +0300 Subject: [PATCH] feat: add ability to map lone (#475) Since d2414f758090f70b2c220320ee4f8f3025e89c1d resets key buffer but this feature prevents binding lone --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.go b/ui.go index ec2ed1f..dfd1465 100644 --- a/ui.go +++ b/ui.go @@ -941,7 +941,7 @@ func (ui *ui) readNormalEvent(ev tcell.Event) expr { } } else { val := gKeyVal[tev.Key()] - if val == "" { + if val == "" && string(ui.keyAcc) != "" { ui.keyAcc = nil ui.keyCount = nil ui.menuBuf = nil