From 2553a421011324e8f1456989c7228752ca714bc8 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 30 Sep 2013 22:05:01 +0200
Subject: [PATCH] Fixed non shown keys if keystroke where not ambiguous.

If a keybinding was used, that contained of multiple keys, but had no prefix
in common with another keybinding, the typed keys where not shown to the user.
---
 src/map.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/map.c b/src/map.c
index 7f87b7b..a7784bd 100644
--- a/src/map.c
+++ b/src/map.c
@@ -237,6 +237,9 @@ MapState map_handle_keys(const char *keys, int keylen)
 
                 /* find ambiguous matches */
                 if (!timeout && m->inlen > map.qlen && !strncmp(m->in, map.queue, map.qlen)) {
+                    if (ambiguous == 0) {
+                        showcmd(map.queue, map.qlen);
+                    }
                     ambiguous++;
                 }
                 /* complete match or better/longer match than previous found */
@@ -246,7 +249,6 @@ MapState map_handle_keys(const char *keys, int keylen)
                 ) {
                     /* backup this found possible match */
                     match = m;
-                    showcmd(map.queue, map.qlen);
                 }
             }
         }
-- 
2.20.1