diff --git a/src/editor/editsearch.c b/src/editor/editsearch.c index 4ed5785cf..9a22cc203 100644 --- a/src/editor/editsearch.c +++ b/src/editor/editsearch.c @@ -669,7 +669,6 @@ edit_search (WEdit * edit) { if (edit_dialog_search_show (edit)) { - edit->search_line_type = edit_get_search_line_type (edit->search); edit_search_fix_search_start_if_selection (edit); edit_do_search (edit); } @@ -700,6 +699,8 @@ edit_search_init (WEdit * edit, const char *str) edit->search->search_fn = edit_search_cmd_callback; edit->search->update_fn = edit_search_update_callback; + edit->search_line_type = edit_get_search_line_type (edit->search); + return TRUE; }