Ticket #4391: fix infinite loop when deleting an mceditor macro.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
sxmboer2 2022-07-22 16:05:32 +03:00 committed by Andrew Borodin
parent 82da1e88c7
commit 01c3c56140

View File

@ -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;