when nothing was sought yet (when historylog is set).
* src/browser.c (filesearch_init): Remove an unfitting comment
(there are no toggles here) and tweak some others.
+ * src/search.c (do_search, do_research): Use the same variable as
+ in the surrounding code, for consistency.
2015-04-05 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Expand on nano's features, condense the
* back at the same position if the string isn't found again, in
* which case it's the only occurrence. */
if (ISSET(USE_REGEXP) && regexp_bol_or_eol(&search_regexp,
- last_search)) {
+ answer)) {
didfind = findnextstr(
#ifndef DISABLE_SPELLER
FALSE,
FALSE,
#endif
TRUE, openfile->current, openfile->current_x,
- answer, NULL);
+ last_search, NULL);
if (fileptr == openfile->current && fileptr_x ==
openfile->current_x && !didfind)
statusbar(_("This is the only occurrence"));