remove unneeded blank lines

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3517 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-05-15 14:16:55 +00:00
parent c1c818ebd5
commit 8803dd8768
1 changed files with 0 additions and 16 deletions

View File

@ -148,10 +148,8 @@ char *do_browser(char *path, DIR *dir)
int mouse_x, mouse_y; int mouse_x, mouse_y;
get_mouseinput(&mouse_x, &mouse_y, TRUE); get_mouseinput(&mouse_x, &mouse_y, TRUE);
} }
break; break;
#endif /* !DISABLE_MOUSE */ #endif /* !DISABLE_MOUSE */
case NANO_HELP_KEY: case NANO_HELP_KEY:
#ifndef DISABLE_HELP #ifndef DISABLE_HELP
do_browser_help(); do_browser_help();
@ -160,19 +158,16 @@ char *do_browser(char *path, DIR *dir)
nano_disabled_msg(); nano_disabled_msg();
#endif #endif
break; break;
/* Search for a filename. */ /* Search for a filename. */
case NANO_WHEREIS_KEY: case NANO_WHEREIS_KEY:
curs_set(1); curs_set(1);
do_filesearch(); do_filesearch();
curs_set(0); curs_set(0);
break; break;
/* Search for another filename. */ /* Search for another filename. */
case NANO_WHEREIS_NEXT_KEY: case NANO_WHEREIS_NEXT_KEY:
do_fileresearch(); do_fileresearch();
break; break;
case NANO_PREVPAGE_KEY: case NANO_PREVPAGE_KEY:
if (selected >= (editwinrows + fileline % editwinrows) * if (selected >= (editwinrows + fileline % editwinrows) *
width) width)
@ -181,24 +176,20 @@ char *do_browser(char *path, DIR *dir)
else else
selected = 0; selected = 0;
break; break;
case NANO_NEXTPAGE_KEY: case NANO_NEXTPAGE_KEY:
selected += (editwinrows - fileline % editwinrows) * selected += (editwinrows - fileline % editwinrows) *
width; width;
if (selected >= filelist_len) if (selected >= filelist_len)
selected = filelist_len - 1; selected = filelist_len - 1;
break; break;
case NANO_FIRSTFILE_ALTKEY: case NANO_FIRSTFILE_ALTKEY:
if (meta_key) if (meta_key)
selected = 0; selected = 0;
break; break;
case NANO_LASTFILE_ALTKEY: case NANO_LASTFILE_ALTKEY:
if (meta_key) if (meta_key)
selected = filelist_len - 1; selected = filelist_len - 1;
break; break;
/* Go to a specific directory. */ /* Go to a specific directory. */
case NANO_GOTODIR_KEY: case NANO_GOTODIR_KEY:
curs_set(1); curs_set(1);
@ -273,27 +264,22 @@ char *do_browser(char *path, DIR *dir)
path = new_path; path = new_path;
free_chararray(filelist, filelist_len); free_chararray(filelist, filelist_len);
goto change_browser_directory; goto change_browser_directory;
case NANO_PREVLINE_KEY: case NANO_PREVLINE_KEY:
if (selected >= width) if (selected >= width)
selected -= width; selected -= width;
break; break;
case NANO_BACK_KEY: case NANO_BACK_KEY:
if (selected > 0) if (selected > 0)
selected--; selected--;
break; break;
case NANO_NEXTLINE_KEY: case NANO_NEXTLINE_KEY:
if (selected + width <= filelist_len - 1) if (selected + width <= filelist_len - 1)
selected += width; selected += width;
break; break;
case NANO_FORWARD_KEY: case NANO_FORWARD_KEY:
if (selected < filelist_len - 1) if (selected < filelist_len - 1)
selected++; selected++;
break; break;
case NANO_ENTER_KEY: case NANO_ENTER_KEY:
/* You can't move up from "/". */ /* You can't move up from "/". */
if (strcmp(filelist[selected], "/..") == 0) { if (strcmp(filelist[selected], "/..") == 0) {
@ -345,12 +331,10 @@ char *do_browser(char *path, DIR *dir)
/* Start over again with the new path value. */ /* Start over again with the new path value. */
free_chararray(filelist, filelist_len); free_chararray(filelist, filelist_len);
goto change_browser_directory; goto change_browser_directory;
/* Redraw the screen. */ /* Redraw the screen. */
case NANO_REFRESH_KEY: case NANO_REFRESH_KEY:
total_redraw(); total_redraw();
break; break;
/* Abort the browser. */ /* Abort the browser. */
case NANO_EXIT_KEY: case NANO_EXIT_KEY:
abort = TRUE; abort = TRUE;