mirror of https://github.com/MidnightCommander/mc
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:
parent
c1832fd586
commit
40e773908c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue