Sync OpenBSD patchset 365:

Support J and K for scroll up and scroll down in copy mode with vi keys,
suggested by martynas.
This commit is contained in:
Tiago Cunha
2009-10-07 17:13:59 +00:00
parent 64e9d07b1b
commit 1eb665832a
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $Id: mode-key.c,v 1.32 2009-10-06 14:10:10 tcunha Exp $ */
/* $Id: mode-key.c,v 1.33 2009-10-07 17:13:59 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@ -161,6 +161,8 @@ const struct mode_key_entry mode_key_vi_copy[] = {
{ '0', 0, MODEKEYCOPY_STARTOFLINE },
{ ':', 0, MODEKEYCOPY_GOTOLINE },
{ '?', 0, MODEKEYCOPY_SEARCHUP },
{ 'J', 0, MODEKEYCOPY_SCROLLDOWN },
{ 'K', 0, MODEKEYCOPY_SCROLLUP },
{ '\002' /* C-b */, 0, MODEKEYCOPY_PREVIOUSPAGE },
{ '\003' /* C-c */, 0, MODEKEYCOPY_CANCEL },
{ '\004' /* C-d */, 0, MODEKEYCOPY_HALFPAGEDOWN },