* src/search.c (do_research): Use the Search key bindings also during
a Re-search, to enable cancelling. This fixes Savannah bug #47159.
* src/search.c (do_replace): Remove two redundant returns.
+ * src/search.c (findnextstr): Prune two #ifdefs.
2016-03-14 Benno Schulenberg <bensberg@justemail.net>
* src/color.c (color_update): Don't dereference a possible NULL.
if (ISSET(BACKWARDS_SEARCH)) {
fileptr = fileptr->prev;
current_y_find--;
- } else {
+ } else
#endif
+ {
fileptr = fileptr->next;
current_y_find++;
-#ifndef NANO_TINY
}
-#endif
if (fileptr == NULL) {
/* We've reached the start or end of the buffer, so wrap around. */
if (ISSET(BACKWARDS_SEARCH)) {
fileptr = openfile->filebot;
current_y_find = editwinrows - 1;
- } else {
+ } else
#endif
+ {
fileptr = openfile->fileage;
current_y_find = 0;
-#ifndef NANO_TINY
}
-#endif
statusbar(_("Search Wrapped"));
}
} else
do_research();
}
-#endif
+#endif /* !NANO_TINY */
#if !defined(NANO_TINY) || !defined(DISABLE_BROWSER)
/* Search for the last string without prompting. */