Commit ab21161a authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Eliding another miniscule function.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5184 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 3 additions and 11 deletions
+3 -11
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
* src/{browser,files,help,prompt,text,winio}.c: Let the function * src/{browser,files,help,prompt,text,winio}.c: Let the function
bottombars() set the global variable 'currmenu' -- the displayed bottombars() set the global variable 'currmenu' -- the displayed
menu must necessarily be the active one. menu must necessarily be the active one.
* src/browser.c (filesearch_abort): Elide this function.
2015-04-05 Benno Schulenberg <bensberg@justemail.net> 2015-04-05 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Expand on nano's features, condense the * doc/texinfo/nano.texi: Expand on nano's features, condense the
......
...@@ -817,13 +817,6 @@ void findnextfile(const char *needle) ...@@ -817,13 +817,6 @@ void findnextfile(const char *needle)
selected = currselected; 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. */ /* Search for a filename. */
void do_filesearch(void) void do_filesearch(void)
{ {
...@@ -833,7 +826,7 @@ void do_filesearch(void) ...@@ -833,7 +826,7 @@ void do_filesearch(void)
if (filesearch_init() != 0) { if (filesearch_init() != 0) {
/* Cancelled or a blank search string. */ /* Cancelled or a blank search string. */
filesearch_abort(); bottombars(MBROWSER);
return; return;
} }
...@@ -852,7 +845,7 @@ void do_filesearch(void) ...@@ -852,7 +845,7 @@ void do_filesearch(void)
findnextfile(answer); findnextfile(answer);
filesearch_abort(); bottombars(MBROWSER);
} }
/* Search for the last given filename again without prompting. */ /* Search for the last given filename again without prompting. */
...@@ -865,8 +858,6 @@ void do_fileresearch(void) ...@@ -865,8 +858,6 @@ void do_fileresearch(void)
statusbar(_("No current search pattern")); statusbar(_("No current search pattern"));
else else
findnextfile(last_search); findnextfile(last_search);
filesearch_abort();
} }
/* Select the first file in the list. */ /* Select the first file in the list. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment