]> git.neil.brown.name Git - wiggle.git/commitdiff
vpatch: add 'space' and 'backspace' for page up/down.
authorNeilBrown <neilb@suse.de>
Tue, 13 Nov 2012 01:24:48 +0000 (12:24 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 13 Nov 2012 01:24:48 +0000 (12:24 +1100)
Makes movement a bit easier.

Signed-off-by: NeilBrown <neilb@suse.de>
vpatch.c

index 0682c437aeaa0e3cd2dcf459ae0b5e0b6cccc1b5..8b02daf2ce5d6fe350ec0e28f2206e8b6d0a86a3 100644 (file)
--- a/vpatch.c
+++ b/vpatch.c
@@ -1154,8 +1154,8 @@ static char *merge_window_help[] = {
        " ESC->  G            Go to end of file",
        " q                   Return to list of files or exit",
        " control-L           recenter current line",
-       " control-V           page down",
-       " ESC-v               page up",
+       " control-V SPACE     page down",
+       " ESC-v   BACKSPC     page up",
        " N                   go to next patch chunk",
        " P                   go to previous patch chunk",
        " O                   move cursor to alternate pane",
@@ -1666,6 +1666,7 @@ static void merge_window(struct plist *p, FILE *f, int reverse)
                        row = lastrow / 2;
                        break;
 
+               case ' ':
                case 'V'-64: /* page down */
                        pos = botpos;
                        if (botrow <= lastrow)
@@ -1674,6 +1675,7 @@ static void merge_window(struct plist *p, FILE *f, int reverse)
                                row = 2;
                        refresh = 1;
                        break;
+               case KEY_BACKSPACE:
                case META('v'): /* page up */
                        pos = toppos;
                        row = lastrow-1;