Skip to content

Commit

Permalink
Ticket #4391: fix infinite loop when deleting an mceditor macro.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
sxmboer authored and aborodin committed Jul 27, 2022
1 parent 82da1e8 commit 01c3c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/editmacros.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ edit_delete_macro (WEdit * edit, int hotkey)
char *skeyname;

/* clear array of actions for current hotkey */
while ((indx = edit_get_macro (edit, hotkey) != -1))
while ((indx = edit_get_macro (edit, hotkey)) != -1)
{
macros_t *macros;

Expand Down

0 comments on commit 01c3c56

Please sign in to comment.