From 1aaa5618de711367f7b0c471aba8fa0128770715 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 6 Mar 2020 10:53:34 +0100 Subject: [PATCH] Make alt-backspace behave like ctrl-w. Another common binding in readline and its clones. --- src/mainclient/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mainclient/shell.c b/src/mainclient/shell.c index 9b736627..b9b843d2 100644 --- a/src/mainclient/shell.c +++ b/src/mainclient/shell.c @@ -765,6 +765,9 @@ static int line() { case '.': /* Alt-. */ historymove(-JANET_HISTORY_MAX); break; + case 127: /* Alt-backspace */ + kbackspacew(); + break; } } break;