diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2017-07-21 11:46:40 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2017-08-13 07:22:57 -0700 |
commit | 59d80ed05338ae64e0d1265fbb8c4629e213588a (patch) | |
tree | 898c4c0a030fe698fb705a91d8e28ab942e13a52 /src/tty_interface.c | |
parent | df59e214132b57771bdac1232c89808073b7fdec (diff) |
Ignore bracketed paste characters
Diffstat (limited to 'src/tty_interface.c')
-rw-r--r-- | src/tty_interface.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tty_interface.c b/src/tty_interface.c index 9bc732b..fc903e6 100644 --- a/src/tty_interface.c +++ b/src/tty_interface.c @@ -152,6 +152,10 @@ static void action_prev(tty_interface_t *state) { choices_prev(state->choices); } +static void action_ignore(tty_interface_t *state) { + (void) state; +} + static void action_next(tty_interface_t *state) { update_state(state); choices_next(state->choices); @@ -236,6 +240,8 @@ static const keybinding_t keybindings[] = {{"\x7f", action_del_char}, /* DEL */ {"\x1bOB", action_next}, /* DOWN */ {"\x1b[5~", action_pageup}, {"\x1b[6~", action_pagedown}, + {"\x1b[200~", action_ignore}, + {"\x1b[201~", action_ignore}, {NULL, NULL}}; #undef KEY_CTRL |