aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-08 10:26:45 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-08 10:26:45 +0200
commitcaab3855eaafdfef6083ff99416a1b6346a0cc18 (patch)
treed9dff0b60eb444dd876e3a84852acf3e77bd6001 /main.c
parent16cc6025a0bef7875a9f3426077beecc71cabde6 (diff)
downloadvis-caab3855eaafdfef6083ff99416a1b6346a0cc18.tar.gz
vis-caab3855eaafdfef6083ff99416a1b6346a0cc18.tar.xz
Add user prompt infrastructure
This is implemented by means of an one line height editor window and a set of custom key bindings.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index d6c505f..18bb5b4 100644
--- a/main.c
+++ b/main.c
@@ -43,8 +43,8 @@ struct Mode {
KeyBinding *bindings;
const char *name;
bool common_prefix;
- void (*enter)(void);
- void (*leave)(void);
+ void (*enter)(Mode *old);
+ void (*leave)(Mode *new);
bool (*unknown)(Key *key0, Key *key1); /* unknown key for this mode, return value determines whether parent modes will be checked */
bool (*input)(const char *str, size_t len); /* unknown key for this an all parent modes */
};