mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
edit/editcmd.c (edit_search_cmd): removed redundant code.
This commit is contained in:
parent
945d2183ac
commit
4e64ee3b8d
@ -2183,7 +2183,6 @@ void edit_search_cmd (WEdit * edit, int again)
|
|||||||
|
|
||||||
if (!edit) {
|
if (!edit) {
|
||||||
g_free (old);
|
g_free (old);
|
||||||
old = NULL;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2199,13 +2198,11 @@ void edit_search_cmd (WEdit * edit, int again)
|
|||||||
if (tmp && tmp->len){
|
if (tmp && tmp->len){
|
||||||
old_exp = exp = tmp->str;
|
old_exp = exp = tmp->str;
|
||||||
}
|
}
|
||||||
if (tmp)
|
g_string_free (tmp, FALSE);
|
||||||
g_string_free(tmp,FALSE);
|
|
||||||
}
|
}
|
||||||
#endif /* HAVE_CHARSET */
|
#endif /* HAVE_CHARSET */
|
||||||
edit_search_dialog (edit, &exp);
|
edit_search_dialog (edit, &exp);
|
||||||
if (old_exp)
|
g_free (old_exp);
|
||||||
g_free(old_exp);
|
|
||||||
|
|
||||||
#ifdef HAVE_CHARSET
|
#ifdef HAVE_CHARSET
|
||||||
if (exp && *exp){
|
if (exp && *exp){
|
||||||
@ -2214,8 +2211,7 @@ void edit_search_cmd (WEdit * edit, int again)
|
|||||||
g_free(exp);
|
g_free(exp);
|
||||||
exp = tmp->str;
|
exp = tmp->str;
|
||||||
}
|
}
|
||||||
if (tmp)
|
g_string_free (tmp, FALSE);
|
||||||
g_string_free(tmp,FALSE);
|
|
||||||
}
|
}
|
||||||
#endif /* HAVE_CHARSET */
|
#endif /* HAVE_CHARSET */
|
||||||
edit_push_action (edit, KEY_PRESS + edit->start_display);
|
edit_push_action (edit, KEY_PRESS + edit->start_display);
|
||||||
|
Loading…
Reference in New Issue
Block a user