add missing blank lines

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3283 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-02-08 04:02:30 +00:00
parent 9b268c2ebf
commit 5443b46241
1 changed files with 7 additions and 0 deletions

View File

@ -142,18 +142,22 @@ char *do_browser(char *path, DIR *dir)
if (selected >= width)
selected -= width;
break;
case NANO_BACK_KEY:
if (selected > 0)
selected--;
break;
case NANO_NEXTLINE_KEY:
if (selected + width <= numents - 1)
selected += width;
break;
case NANO_FORWARD_KEY:
if (selected < numents - 1)
selected++;
break;
case NANO_PREVPAGE_KEY:
if (selected >= (editwinrows + fileline % editwinrows) *
width)
@ -162,12 +166,14 @@ char *do_browser(char *path, DIR *dir)
else
selected = 0;
break;
case NANO_NEXTPAGE_KEY:
selected += (editwinrows - fileline % editwinrows) *
width;
if (selected >= numents)
selected = numents - 1;
break;
case NANO_HELP_KEY:
#ifndef DISABLE_HELP
do_help();
@ -176,6 +182,7 @@ char *do_browser(char *path, DIR *dir)
nano_disabled_msg();
#endif
break;
case NANO_ENTER_KEY:
/* You can't move up from "/". */
if (strcmp(filelist[selected], "/..") == 0) {