diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-28 11:47:40 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-28 22:00:08 +0200 |
| commit | 0ef138085f885d4576a8e53d079e1f00f80799bf (patch) | |
| tree | 2c06880c11810870c9f828822e75ca93496d3da7 /vis.c | |
| parent | 53e3c9cac64bc537963fe12816e905c9726c3cdf (diff) | |
| download | vis-0ef138085f885d4576a8e53d079e1f00f80799bf.tar.gz vis-0ef138085f885d4576a8e53d079e1f00f80799bf.tar.xz | |
vis: unmap all mapped prefixes if a new mapping is forced
Close #271
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -666,11 +666,11 @@ void vis_die(Vis *vis, const char *msg, ...) { } const char *vis_keys_next(Vis *vis, const char *keys) { + if (!keys || !*keys) + return NULL; TermKeyKey key; TermKey *termkey = vis->ui->termkey_get(vis->ui); const char *next = NULL; - if (!keys) - return NULL; /* first try to parse a special key of the form <Key> */ if (*keys == '<' && (next = termkey_strpkey(termkey, keys+1, &key, TERMKEY_FORMAT_VIM)) && *next == '>') return next+1; |
