If there exist maps for 'a', 'aa' and 'aaa' the 'aaa' was displayed to the
user after the first typed 'a'.
/* 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
) {
/* backup this found possible match */
match = m;
+ showcmd(map.queue, map.qlen);
}
}
}