We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 100004e commit 9a522ddCopy full SHA for 9a522dd
lib/mp-readline/readline.c
@@ -228,6 +228,12 @@ int readline_process_char(int c) {
228
} else if (rl.escape_seq_buf[0] == '4' || rl.escape_seq_buf[0] == '8') {
229
end_key:
230
redraw_step_forward = rl.line->len - rl.cursor_pos;
231
+ } else if (rl.escape_seq_buf[0] == '3') {
232
+ // delete
233
+ if (rl.cursor_pos >= rl.orig_line_len && rl.cursor_pos < rl.line->len) {
234
+ vstr_cut_out_bytes(rl.line, rl.cursor_pos, 1);
235
+ redraw_from_cursor = true;
236
+ }
237
} else {
238
DEBUG_printf("(ESC [ %c %d)", rl.escape_seq_buf[0], c);
239
}
0 commit comments