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 /vis.c | |
| parent | db7c309c8bb09c5de0dcd5de9a7fab7e0e143876 (diff) | |
| download | vis-d05b8805325c2d1836c1a60280bb097340bbd03f.tar.gz vis-d05b8805325c2d1836c1a60280bb097340bbd03f.tar.xz | |
vis: properly ignore tab at command prompt
Closes #77
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -301,6 +301,8 @@ static TextObject textobjs[] = { }; /** functions to be called from keybindings */ +/* ignore key, do nothing */ +static const char *nop(const char *keys, const Arg *arg); /* navigate jump list either in forward (arg->i>0) or backward (arg->i<0) direction */ static const char *jumplist(const char *keys, const Arg *arg); /* navigate change list either in forward (arg->i>0) or backward (arg->i<0) direction */ @@ -782,6 +784,10 @@ static size_t view_lines_bottom(const Arg *arg) { /** key bindings functions */ +static const char *nop(const char *keys, const Arg *arg) { + return keys; +} + static const char *jumplist(const char *keys, const Arg *arg) { size_t pos; if (arg->i > 0) |
