commit b0e3767af50df5a5d6885c23fa77c7c3583f09bf
parent 4923119174766e57dc0afad20648b10b612adf57
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 7 Aug 2020 18:50:26 +0200
input: understand M-Bsp also when terminfo does not match the terminal
Always interpret ESC followed by BS or DEL as <Alt+Backspace>.
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.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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)