Skip to content

Commit

Permalink
(edit_delete_macro): do not resort macros after deleting one
Browse files Browse the repository at this point in the history
...because g_array_remove_index() keeps the array sorted.

Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
sxmboer authored and aborodin committed Jul 27, 2022
1 parent 01c3c56 commit cca4c46
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/editor/editmacros.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ edit_delete_macro (WEdit * edit, int hotkey)
macros = &g_array_index (macros_list, struct macros_t, indx);
g_array_free (macros->macro, TRUE);
g_array_remove_index (macros_list, indx);
edit_macro_sort_by_hotkey ();
}

macros_fname = mc_config_get_full_path (MC_MACRO_FILE);
Expand Down

0 comments on commit cca4c46

Please sign in to comment.