From: David Lawrence Ramsey Date: Wed, 8 Feb 2006 04:02:30 +0000 (+0000) Subject: add missing blank lines X-Git-Tag: v1.3.11~46 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5443b46241092c1fdfd9b074e8a7285c49fb9309;p=nano.git add missing blank lines git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3283 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/browser.c b/src/browser.c index e919d913..3d3251aa 100644 --- a/src/browser.c +++ b/src/browser.c @@ -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) {