Browse code

Ignore bracketed paste characters

Keith Smiley authored on 21/07/2017 18:46:40 • John Hawthorn committed on 13/08/2017 14:22:57
Showing 1 changed files

... ...
@@ -152,6 +152,10 @@ static void action_prev(tty_interface_t *state) {
152 152
 	choices_prev(state->choices);
153 153
 }
154 154
 
155
+static void action_ignore(tty_interface_t *state) {
156
+	(void) state;
157
+}
158
+
155 159
 static void action_next(tty_interface_t *state) {
156 160
 	update_state(state);
157 161
 	choices_next(state->choices);
... ...
@@ -236,6 +240,8 @@ static const keybinding_t keybindings[] = {{"\x7f", action_del_char},	/* DEL */
236 240
 					   {"\x1bOB", action_next}, /* DOWN */
237 241
 					   {"\x1b[5~", action_pageup},
238 242
 					   {"\x1b[6~", action_pagedown},
243
+					   {"\x1b[200~", action_ignore},
244
+					   {"\x1b[201~", action_ignore},
239 245
 					   {NULL, NULL}};
240 246
 
241 247
 #undef KEY_CTRL