From 59d80ed05338ae64e0d1265fbb8c4629e213588a Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 21 Jul 2017 11:46:40 -0700 Subject: Ignore bracketed paste characters --- src/tty_interface.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3