Eliding another miniscule function.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5184 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2015-04-07 14:24:18 +00:00
parent d8b6dbfffe
commit ab21161a69
2 changed files with 3 additions and 11 deletions

View File

@ -14,6 +14,7 @@
* src/{browser,files,help,prompt,text,winio}.c: Let the function
bottombars() set the global variable 'currmenu' -- the displayed
menu must necessarily be the active one.
* src/browser.c (filesearch_abort): Elide this function.
2015-04-05 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Expand on nano's features, condense the

View File

@ -817,13 +817,6 @@ void findnextfile(const char *needle)
selected = currselected;
}
/* Abort the current filename search. Clean up by setting the current
* shortcut list to the browser shortcut list, and displaying it. */
void filesearch_abort(void)
{
bottombars(MBROWSER);
}
/* Search for a filename. */
void do_filesearch(void)
{
@ -833,7 +826,7 @@ void do_filesearch(void)
if (filesearch_init() != 0) {
/* Cancelled or a blank search string. */
filesearch_abort();
bottombars(MBROWSER);
return;
}
@ -852,7 +845,7 @@ void do_filesearch(void)
findnextfile(answer);
filesearch_abort();
bottombars(MBROWSER);
}
/* Search for the last given filename again without prompting. */
@ -865,8 +858,6 @@ void do_fileresearch(void)
statusbar(_("No current search pattern"));
else
findnextfile(last_search);
filesearch_abort();
}
/* Select the first file in the list. */