diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-18 17:48:23 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-18 17:48:23 +0200 |
| commit | 1e39c1cd8b02d58b744e9cb35df4ca41f68d5f79 (patch) | |
| tree | a971570ead8b73e5d5b8da0d41e5780c5f522adf | |
| parent | b6d31e959a957b25aae8b75569320e0ef8af4419 (diff) | |
| download | vis-1e39c1cd8b02d58b744e9cb35df4ca41f68d5f79.tar.gz vis-1e39c1cd8b02d58b744e9cb35df4ca41f68d5f79.tar.xz | |
Ignore tab key in command prompt for now
| -rw-r--r-- | config.def.h | 1 | ||||
| -rw-r--r-- | vis.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 8d5d605..c03da71 100644 --- a/config.def.h +++ b/config.def.h @@ -421,6 +421,7 @@ static KeyBinding vis_mode_prompt[] = { { { CONTROL('B') }, movement, { .i = MOVE_FILE_BEGIN } }, { { KEY(END) }, movement, { .i = MOVE_FILE_END } }, { { CONTROL('E') }, movement, { .i = MOVE_FILE_END } }, + { { NONE('\t') }, NULL, { NULL } }, { /* empty last element, array terminator */ }, }; @@ -1348,7 +1348,8 @@ int main(int argc, char *argv[]) { key_mod = &key_prev; continue; } - action->func(&action->arg); + if (action->func) + action->func(&action->arg); key_mod = NULL; continue; } |
