vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit a6743fa3fcd8b7ae2a710925d2fac615df2bbc07
parent e5ae6cf52849f539779e8b068b186b72c4ef3a18
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 18 Sep 2014 17:48:23 +0200

Ignore tab key in command prompt for now

Diffstat:
Mconfig.def.h | 1+
Mvis.c | 3++-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git 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 @@ -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; }