From: Daniel Carl <danielcarl@gmx.de>
Date: Fri, 21 Feb 2020 22:26:42 +0000 (+0100)
Subject: Do not run queued events if the last key was not typed.
X-Git-Url: https://git.owens.tech/dummy.html/dummy.html/git?a=commitdiff_plain;h=0e98c6beb3620075e954c2b91b61a16e700b0e82;p=vimb.git

Do not run queued events if the last key was not typed.

Fixes #600.
---

diff --git a/src/map.c b/src/map.c
index 4621fa6..ed5e599 100644
--- a/src/map.c
+++ b/src/map.c
@@ -382,7 +382,7 @@ gboolean on_map_keypress(GtkWidget *widget, GdkEventKey* event, Client *c)
     MapState res = map_handle_keys(c, string, len, true);
 
     if (res != MAP_AMBIGUOUS) {
-        if (!c->state.processed_key) {
+        if (c->state.typed && !c->state.processed_key) {
             /* events ready to be consumed */
             process_events();
         } else {