summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-06 07:32:27 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-06 07:32:27 +0000
commit59a167a9fda55e56eb07cea2ecdcdd5bd2158cf8 (patch)
treeb48f37eee8b2c724abb0fea41cb1d1423de90abb /usr.bin
parentfc5fe287d72776b43ec481a0cf9804a63b570ba0 (diff)
Accept ^? for backspace as well as BSpace.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/key-string.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/key-string.c b/usr.bin/tmux/key-string.c
index 54baeaa32b5..cba6bb09755 100644
--- a/usr.bin/tmux/key-string.c
+++ b/usr.bin/tmux/key-string.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key-string.c,v 1.7 2009/10/04 08:50:05 nicm Exp $ */
+/* $OpenBSD: key-string.c,v 1.8 2009/10/06 07:32:26 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -121,6 +121,8 @@ key_string_lookup_string(const char *string)
if (ptr[1] == '\0') {
if (ptr[0] == 32)
return (0);
+ if (ptr[0] == 63)
+ return (KEYC_BSPACE);
if (ptr[0] >= 64 && ptr[0] <= 95)
return (ptr[0] - 64);
if (ptr[0] >= 97 && ptr[0] <= 122)