summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-23 13:44:02 +0000
committernicm <nicm@openbsd.org>2009-07-23 13:44:02 +0000
commit7024ae27e660a4de31db719e4b7f0925c0a968d0 (patch)
tree7892b0c5e7be71a9c82c5842e3ec86b61c836979
parentBoth of cmdclient and curclient CAN be NULL - if the command is executed from (diff)
downloadwireguard-openbsd-7024ae27e660a4de31db719e4b7f0925c0a968d0.tar.xz
wireguard-openbsd-7024ae27e660a4de31db719e4b7f0925c0a968d0.zip
C-d is delete as well in emacs mode.
-rw-r--r--usr.bin/tmux/mode-key.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/mode-key.c b/usr.bin/tmux/mode-key.c
index 2c274d71e39..a3872eec170 100644
--- a/usr.bin/tmux/mode-key.c
+++ b/usr.bin/tmux/mode-key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mode-key.c,v 1.3 2009/07/21 17:57:29 nicm Exp $ */
+/* $OpenBSD: mode-key.c,v 1.4 2009/07/23 13:44:02 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -153,6 +153,7 @@ mode_key_lookup_emacs(struct mode_key_data *mdata, int key)
case '\010':
case '\177':
return (MODEKEYCMD_BACKSPACE);
+ case '\004':
case KEYC_DC:
return (MODEKEYCMD_DELETE);
case '\011':