/* Abort the current search or replace. Clean up by displaying the main * shortcut list, updating the screen if the mark was on before, and * decompiling the compiled regular expression we used in the last * search, if any. */ void search_replace_abort(void) { display_main_list(); focusing = FALSE; #ifndef NANO_TINY if (openfile->mark_set) edit_refresh(); #endif #ifdef HAVE_REGEX_H regexp_cleanup(); #endif }
static void regexp_restart_ev(const void *event_data, void *user_data) { regexp_cleanup(); return; }