Tickets #4525, #4526: mcedit: fix replacement using regular expressions.

The bug was introduced in 21feb38a8d.

  * (edit_search_init): call edit_get_search_line_type().
  * (edit_search): do mot call edit_get_search_line_type() since it is
  called in edit_search_init().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-01-31 21:32:22 +03:00
parent c1832fd586
commit 40e773908c
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}