mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(edit_delete_macro): do not resort macros after deleting one
...because g_array_remove_index() keeps the array sorted. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
01c3c56140
commit
cca4c46d05
@ -111,7 +111,6 @@ edit_delete_macro (WEdit * edit, int hotkey)
|
|||||||
macros = &g_array_index (macros_list, struct macros_t, indx);
|
macros = &g_array_index (macros_list, struct macros_t, indx);
|
||||||
g_array_free (macros->macro, TRUE);
|
g_array_free (macros->macro, TRUE);
|
||||||
g_array_remove_index (macros_list, indx);
|
g_array_remove_index (macros_list, indx);
|
||||||
edit_macro_sort_by_hotkey ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
macros_fname = mc_config_get_full_path (MC_MACRO_FILE);
|
macros_fname = mc_config_get_full_path (MC_MACRO_FILE);
|
||||||
|
Loading…
Reference in New Issue
Block a user