* files.c (load_history): Set last_search to the last search value we loaded from history,

so do_research will succeed without needing to manually load the last seach in.  Fixes
          bug reported by Matt "ML" at gmail.



git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4531 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta
2011-02-18 07:49:28 +00:00
parent 8e2a930714
commit 392c23c9c5
2 changed files with 5 additions and 0 deletions

View File

@@ -2816,6 +2816,8 @@ void load_history(void)
fclose(hist);
free(line);
if (search_history->prev != NULL)
last_search = mallocstrcpy(NULL, search_history->prev->data);
}
free(nanohist);
free(legacyhist);