From 1e39c1cd8b02d58b744e9cb35df4ca41f68d5f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 18 Sep 2014 17:48:23 +0200 Subject: Ignore tab key in command prompt for now --- config.def.h | 1 + vis.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 */ }, }; diff --git a/vis.c b/vis.c index d5998be..612e3b5 100644 --- a/vis.c +++ b/vis.c @@ -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; } -- cgit v1.2.3