aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor.h b/editor.h
index 2c500a9..3b555bf 100644
--- a/editor.h
+++ b/editor.h
@@ -29,7 +29,9 @@ typedef union {
typedef struct {
const char *key;
- void (*func)(const Arg *arg);
+ const char* (*func)(const char *keys, const Arg*);
+ /* returns a pointer to the first not consumed character in keys
+ * or NULL if not enough input was available to complete the command */
const Arg arg;
} KeyBinding;