diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-10-11 23:05:16 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-10-11 23:05:16 +0200 |
| commit | d05b8805325c2d1836c1a60280bb097340bbd03f (patch) | |
| tree | 5a6ccf122173d781e6367d3a30e52473b419361f /config.def.h | |
| parent | db7c309c8bb09c5de0dcd5de9a7fab7e0e143876 (diff) | |
| download | vis-d05b8805325c2d1836c1a60280bb097340bbd03f.tar.gz vis-d05b8805325c2d1836c1a60280bb097340bbd03f.tar.xz | |
vis: properly ignore tab at command prompt
Closes #77
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index e84629e..a7c8c13 100644 --- a/config.def.h +++ b/config.def.h @@ -222,6 +222,7 @@ enum { VIS_ACTION_TEXT_OBJECT_LINE_INNER, VIS_ACTION_MOTION_CHARWISE, VIS_ACTION_MOTION_LINEWISE, + VIS_ACTION_NOP, }; static KeyAction vis_action[] = { @@ -985,6 +986,11 @@ static KeyAction vis_action[] = { "Force motion to be linewise", motiontype, { .i = LINEWISE } }, + [VIS_ACTION_NOP] = { + "nop", + "Ignore key, do nothing", + nop, + }, }; static KeyBinding basic_movement[] = { @@ -1299,7 +1305,7 @@ static KeyBinding vis_mode_prompt[] = { { "<Backspace>", ACTION(PROMPT_BACKSPACE) }, { "<Enter>", ACTION(PROMPT_ENTER) }, { "<C-j>", ALIAS("<Enter>") }, - { "<Tab>", }, + { "<Tab>", ACTION(NOP) }, { /* empty last element, array terminator */ }, }; |
