From: Daniel Carl Date: Sat, 28 Sep 2013 15:33:41 +0000 (+0200) Subject: Fixed wrong display for ambiguous maps. X-Git-Url: https://git.owens.tech/assets/static/git-favicon.png/assets/static/git-favicon.png/git?a=commitdiff_plain;h=923d94efadca23ddef112d39aa88de2ead3a6662;p=vimb.git Fixed wrong display for ambiguous maps. If there exist maps for 'a', 'aa' and 'aaa' the 'aaa' was displayed to the user after the first typed 'a'. --- diff --git a/src/map.c b/src/map.c index ee13214..7f87b7b 100644 --- a/src/map.c +++ b/src/map.c @@ -238,7 +238,6 @@ 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)) { ambiguous++; - showcmd(map.queue, map.qlen); } /* complete match or better/longer match than previous found */ if (m->inlen <= map.qlen @@ -247,6 +246,7 @@ MapState map_handle_keys(const char *keys, int keylen) ) { /* backup this found possible match */ match = m; + showcmd(map.queue, map.qlen); } } }