From 8a85e071fdaa7448e6ec595bcbeba633e7a95af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 27 Oct 2016 00:33:53 +0200 Subject: vis: apply language map only to key values not modifiers The language map translation should not take modifiers into account. For example if `a` is mapped to `b` then `` should also be mapped to ``. Fix #404 --- vis-core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vis-core.h') diff --git a/vis-core.h b/vis-core.h index a998586..6ee25f3 100644 --- a/vis-core.h +++ b/vis-core.h @@ -162,6 +162,7 @@ struct Vis { Map *options; /* ":set"-options */ Map *keymap; /* key translation before any bindings are matched */ bool keymap_disabled; /* ignore key map for next key press, gets automatically re-enabled */ + char key[64]; /* last pressed key as reported from the UI */ Buffer input_queue; /* holds pending input keys */ Buffer *keys; /* currently active keys buffer (either the input_queue or a macro) */ bool errorhandler; /* whether we are currently in an error handler, used to avoid recursion */ -- cgit v1.2.3