aboutsummaryrefslogtreecommitdiff
path: root/mode-key.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-01-25 17:11:42 +0000
committerTiago Cunha <tcunha@gmx.com>2010-01-25 17:11:42 +0000
commit05e5bc78820633c152c15a305f12d849f0ed0b83 (patch)
tree9ae1d2e78aeb3a5dbae048b8d87e63849a58634c /mode-key.c
parent62822cc78d6c9c6d4e9cc663edec46c34203eda4 (diff)
downloadrtmux-05e5bc78820633c152c15a305f12d849f0ed0b83.tar.gz
rtmux-05e5bc78820633c152c15a305f12d849f0ed0b83.tar.bz2
rtmux-05e5bc78820633c152c15a305f12d849f0ed0b83.zip
Sync OpenBSD patchset 613:
Use C-e and C-y for scrolling in vi mode, from Micah Cowan.
Diffstat (limited to 'mode-key.c')
-rw-r--r--mode-key.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mode-key.c b/mode-key.c
index 73da4502..6a5ca0c0 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -1,4 +1,4 @@
-/* $Id: mode-key.c,v 1.36 2009-12-04 22:14:47 tcunha Exp $ */
+/* $Id: mode-key.c,v 1.37 2010-01-25 17:11:42 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -172,9 +172,11 @@ const struct mode_key_entry mode_key_vi_copy[] = {
{ '\002' /* C-b */, 0, MODEKEYCOPY_PREVIOUSPAGE },
{ '\003' /* C-c */, 0, MODEKEYCOPY_CANCEL },
{ '\004' /* C-d */, 0, MODEKEYCOPY_HALFPAGEDOWN },
+ { '\005' /* C-e */, 0, MODEKEYCOPY_SCROLLDOWN },
{ '\006' /* C-f */, 0, MODEKEYCOPY_NEXTPAGE },
{ '\010' /* C-h */, 0, MODEKEYCOPY_LEFT },
{ '\025' /* C-u */, 0, MODEKEYCOPY_HALFPAGEUP },
+ { '\031' /* C-y */, 0, MODEKEYCOPY_SCROLLUP },
{ '\033' /* Escape */, 0, MODEKEYCOPY_CLEARSELECTION },
{ '\r', 0, MODEKEYCOPY_COPYSELECTION },
{ '^', 0, MODEKEYCOPY_BACKTOINDENTATION },