From b0e3767af50df5a5d6885c23fa77c7c3583f09bf Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 7 Aug 2020 18:50:26 +0200 Subject: [PATCH] input: understand M-Bsp also when terminfo does not match the terminal Always interpret ESC followed by BS or DEL as . This fixes https://savannah.gnu.org/bugs/?58910. Bug existed since commit 40b03162 from one week ago, since M-Bsp was hard-bound to deleting a word backwards. --- src/winio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/winio.c b/src/winio.c index a4d4333e..210ebee5 100644 --- a/src/winio.c +++ b/src/winio.c @@ -940,7 +940,8 @@ int parse_kbinput(WINDOW *win) if (keycode == '\t') return SHIFT_TAB; #ifndef NANO_TINY - else if (keycode == KEY_BACKSPACE) + else if (keycode == KEY_BACKSPACE || keycode == '\b' || + keycode == DEL_CODE) return CONTROL_SHIFT_DELETE; #endif else if (!solitary)