From: Benno Schulenberg Date: Tue, 7 Apr 2015 14:24:18 +0000 (+0000) Subject: Eliding another miniscule function. X-Git-Tag: v2.4.1~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ab21161a694596f1840755d63bbb1f7b69345771;p=nano.git Eliding another miniscule function. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5184 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index a4083d0e..c2df1fd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 * doc/texinfo/nano.texi: Expand on nano's features, condense the diff --git a/src/browser.c b/src/browser.c index 7b631fff..3123359a 100644 --- a/src/browser.c +++ b/src/browser.c @@ -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. */