aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-18 17:48:23 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-18 17:48:23 +0200
commit1e39c1cd8b02d58b744e9cb35df4ca41f68d5f79 (patch)
treea971570ead8b73e5d5b8da0d41e5780c5f522adf
parentb6d31e959a957b25aae8b75569320e0ef8af4419 (diff)
downloadvis-1e39c1cd8b02d58b744e9cb35df4ca41f68d5f79.tar.gz
vis-1e39c1cd8b02d58b744e9cb35df4ca41f68d5f79.tar.xz
Ignore tab key in command prompt for now
-rw-r--r--config.def.h1
-rw-r--r--vis.c3
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 */ },
};
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;
}