From cbbfebbc7aae861bbbe7f5c9a6ab018beed8195a Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 10 Mar 2020 14:28:55 +0100 Subject: [PATCH] bindings: remove the translation of ^H to Backspace on the BSDs This avoids an unintended rebinding of the key on terminal emulators. This fixes https://savannah.gnu.org/bugs/?57981. Reported-by: Ciprian Tomoiaga . --- src/global.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/global.c b/src/global.c index 40e3eacf..709e6d02 100644 --- a/src/global.c +++ b/src/global.c @@ -521,13 +521,9 @@ int keycode_from_string(const char *keystring) if (keystring[2] == '\0') { if (keystring[1] == '/') return 31; -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) - if (keystring[1] == 'H') - return KEY_BACKSPACE; -#endif if (keystring[1] <= '_') return keystring[1] - 64; - else if (keystring[1] == '`') + if (keystring[1] == '`') return 0; else return -1;