You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since version 4.8.27 removing an existing macro results in an infinite loop that dumps a repeating series of array assertion error.
To reproduce:
create a macro, e.g. CTRL-R abc CTRL-R a
remove that macro, e.g. CTRL-R CTRL-R a (or use the menu to delete that macro)
The problem was introduced because of the split of the macro functions with some rewrites and optimizations. I am including a patch that also gets rid of the unnecessary resorting of the macro array. The glib function called keeps the array sorted.
Another thought is that the while construction can be replaced with a single if. In principle it is impossible to have more than one macro with the same hotkey.
Note
Original attachments:
macropatch.diff (raw) by sxmboer2 (sxmboer@….com) on Jul 22, 2022 at 2:05 UTC
The text was updated successfully, but these errors were encountered:
Important
This issue was migrated from Trac:
sxmboer2
(sxmboer@….com)macro
,edit
Since version 4.8.27 removing an existing macro results in an infinite loop that dumps a repeating series of array assertion error.
To reproduce:
create a macro, e.g. CTRL-R abc CTRL-R a
remove that macro, e.g. CTRL-R CTRL-R a (or use the menu to delete that macro)
The problem was introduced because of the split of the macro functions with some rewrites and optimizations. I am including a patch that also gets rid of the unnecessary resorting of the macro array. The glib function called keeps the array sorted.
Another thought is that the while construction can be replaced with a single if. In principle it is impossible to have more than one macro with the same hotkey.
Note
Original attachments:
sxmboer2
(sxmboer@….com) onJul 22, 2022 at 2:05 UTC
The text was updated successfully, but these errors were encountered: