Don't interpret an n*<Esc> as (n-1)*<Alt>-<Esc>

This commit is contained in:
2015-08-08 23:51:29 +02:00
parent 0b5d8ecd0d
commit f05e40a30a
5 changed files with 64 additions and 24 deletions

View File

@@ -466,7 +466,7 @@ free_driver (void *info)
static termo_result_t
peekkey (termo_t *tk, void *info,
termo_key_t *key, int force, size_t *nbytep)
termo_key_t *key, int flags, size_t *nbytep)
{
termo_ti_t *ti = info;
@@ -512,7 +512,7 @@ peekkey (termo_t *tk, void *info,
// If p is not NULL then we hadn't walked off the end yet, so we have a
// partial match
if (p && !force)
if (p && !(flags & PEEKKEY_FORCE))
return TERMO_RES_AGAIN;
return TERMO_RES_NONE;