Commit 28487710 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

search: fix compilation when configured with --enable-tiny

SVN revision 5748 could cause some 'else's to be orphaned.

This fixes https://savannah.gnu.org/bugs/?47610

.
Reported-by: default avatarThomas Rosenau <thomasr@fantasymail.de>
Signed-off-by: default avatarBenno Schulenberg <bensberg@justemail.net>
parent 5d1752c5
Showing with 5 additions and 3 deletions
+5 -3
...@@ -595,8 +595,8 @@ void do_findnext(void); ...@@ -595,8 +595,8 @@ void do_findnext(void);
#endif #endif
#if !defined(NANO_TINY) || !defined(DISABLE_BROWSER) #if !defined(NANO_TINY) || !defined(DISABLE_BROWSER)
void do_research(void); void do_research(void);
void go_looking(void);
#endif #endif
void go_looking(void);
#ifdef HAVE_REGEX_H #ifdef HAVE_REGEX_H
int replace_regexp(char *string, bool create); int replace_regexp(char *string, bool create);
#endif #endif
......
...@@ -228,14 +228,16 @@ int search_init(bool replacing, bool use_answer) ...@@ -228,14 +228,16 @@ int search_init(bool replacing, bool use_answer)
TOGGLE(BACKWARDS_SEARCH); TOGGLE(BACKWARDS_SEARCH);
backupstring = mallocstrcpy(backupstring, answer); backupstring = mallocstrcpy(backupstring, answer);
return 1; return 1;
} else
#endif #endif
#ifdef HAVE_REGEX_H #ifdef HAVE_REGEX_H
} else if (func == regexp_void) { if (func == regexp_void) {
TOGGLE(USE_REGEXP); TOGGLE(USE_REGEXP);
backupstring = mallocstrcpy(backupstring, answer); backupstring = mallocstrcpy(backupstring, answer);
return 1; return 1;
} else
#endif #endif
} else if (func == do_replace || func == flip_replace_void) { if (func == do_replace || func == flip_replace_void) {
backupstring = mallocstrcpy(backupstring, answer); backupstring = mallocstrcpy(backupstring, answer);
return -2; /* Call the opposite search function. */ return -2; /* Call the opposite search function. */
} else if (func == do_gotolinecolumn_void) { } else if (func == do_gotolinecolumn_void) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment