From dcc453ee3a20dd09df20de8c3ff26099b87598b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 8 Nov 2016 22:30:39 +0100 Subject: vis: fix key parsing/skipping logic We should only attempt to parse special keys if they are delimited by angle brackets i.e. but not Key. Previously we would wrongly skip over the latter. --- vis.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vis.c b/vis.c index 15652e5..b1f0a31 100644 --- a/vis.c +++ b/vis.c @@ -769,9 +769,11 @@ const char *vis_keys_next(Vis *vis, const char *keys) { return end + 1; } } + if (ISUTF8(*keys)) + keys++; while (!ISUTF8(*keys)) keys++; - return termkey_strpkey(termkey, keys, &key, TERMKEY_FORMAT_VIM); + return keys; } static void vis_keys_process(Vis *vis, size_t pos) { -- cgit v1.2.3