From: Chris Allegretta Date: Mon, 8 Jan 2001 21:14:04 +0000 (+0000) Subject: do_browser() - added space and - keys for page down and up X-Git-Tag: v0.9.99pre1~23 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8eac3b50691e262c9a664190b5c931412de20b9d;p=nano.git do_browser() - added space and - keys for page down and up git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@464 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 9275aab6..89f2e7b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ CVS code - real_dir_from_tilde() - Oops, fix case where buf ="~", silly crash (bug discovered by Neil Parks). + do_browser() + - Added space and - keys to do page up and down. nano 0.9.25 - 01/07/2001 General - diff --git a/files.c b/files.c index f6656311..4e0316c1 100644 --- a/files.c +++ b/files.c @@ -1265,6 +1265,7 @@ char *do_browser(char *inpath) case NANO_PREVPAGE_KEY: case NANO_PREVPAGE_FKEY: case KEY_PPAGE: + case '-': if (lineno % editwinrows == 0) { if (selected - (editwinrows * width) >= 0) @@ -1282,6 +1283,7 @@ char *do_browser(char *inpath) case NANO_NEXTPAGE_KEY: case NANO_NEXTPAGE_FKEY: case KEY_NPAGE: + case ' ': if (lineno % editwinrows == 0) { if (selected + (editwinrows * width) <= numents - 1) selected += editwinrows * width;