aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}