aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2011-04-06 22:23:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2011-04-06 22:23:30 +0000
commitae5954d30a049ff2be00061e36c72219ea60afc4 (patch)
treebf1f37608d68f81f5f301f066892f1921c924c86
parent01f5f041d32e58bd397a344573f6f0b2dd335edb (diff)
downloadrtmux-ae5954d30a049ff2be00061e36c72219ea60afc4.tar.gz
rtmux-ae5954d30a049ff2be00061e36c72219ea60afc4.tar.bz2
rtmux-ae5954d30a049ff2be00061e36c72219ea60afc4.zip
|PatchSet 881
|Date: 2011/04/05 19:55:38 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Bind C-u to delete-line in vi mode like ksh does, suggested by thib.
-rw-r--r--mode-key.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mode-key.c b/mode-key.c
index 4ddb6d4b..1e7946cd 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -1,4 +1,4 @@
-/* $Id: mode-key.c,v 1.47 2011-01-03 23:31:26 tcunha Exp $ */
+/* $Id: mode-key.c,v 1.48 2011-04-06 22:23:30 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -123,6 +123,7 @@ const struct mode_key_cmdstr mode_key_cmdstr_copy[] = {
const struct mode_key_entry mode_key_vi_edit[] = {
{ '\003' /* C-c */, 0, MODEKEYEDIT_CANCEL },
{ '\010' /* C-h */, 0, MODEKEYEDIT_BACKSPACE },
+ { '\025' /* C-u */, 0, MODEKEYEDIT_DELETELINE },
{ '\011' /* Tab */, 0, MODEKEYEDIT_COMPLETE },
{ '\033' /* Escape */, 0, MODEKEYEDIT_SWITCHMODE },
{ '\r', 0, MODEKEYEDIT_ENTER },