+2015-04-07 Benno Schulenberg <bensberg@justemail.net>
+ * src/browser.c (do_fileresearch): Don't search for the empty string
+ when nothing was sought yet (when historylog is set).
+
2015-04-05 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Expand on nano's features, condense the
synopsis, and "online" means something else to most people.
if (last_search[0] != '\0') {
findnextfile_wrap_reset();
- didfind = findnextfile(FALSE, begin, answer);
+ didfind = findnextfile(FALSE, begin, last_search);
/* Check to see if there's only one occurrence of the string and
* we're on it now. */
* should only end up back at the same position if the
* string isn't found again, in which case it's the only
* occurrence. */
- didfind = findnextfile(TRUE, begin, answer);
+ didfind = findnextfile(TRUE, begin, last_search);
if (selected == begin && !didfind)
statusbar(_("This is the only occurrence"));
}