diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-04-05 18:55:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-04-05 18:55:39 +0000 |
commit | cb9eb728aaa5479723c8612fd2dd20538c697af5 (patch) | |
tree | d850a9066f3e335128647258ade2a62bd8617014 /usr.bin | |
parent | d06c6e3ed24cd10e8c6d6e2716844bdfdf4988d0 (diff) |
Bind C-u to delete-line in vi mode like ksh does, suggested by thib.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/mode-key.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/mode-key.c b/usr.bin/tmux/mode-key.c index 7dbf1c8bfe8..1f09d4e5b6b 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.36 2011/01/01 03:39:21 nicm Exp $ */ +/* $OpenBSD: mode-key.c,v 1.37 2011/04/05 18:55:38 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 }, |