aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vis-core.h b/vis-core.h
index debd994..cc8636d 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -174,7 +174,9 @@ 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 */
+ char key[VIS_KEY_LENGTH_MAX]; /* last pressed key as reported from the UI */
+ char key_current[VIS_KEY_LENGTH_MAX];/* current key being processed by the input queue */
+ char key_prev[VIS_KEY_LENGTH_MAX]; /* previous key which was processed by the input queue */
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 */