Instead of hardcoding the count of previously defined keybindings in the Addons plugin, use the already available enum counter.
While testing #1182, I noticed that there is a mismatch between the pressed keybinding with the configured replacement. The Wordwrap plugin had the keybinding count of all keybindings of the Addons plugin hardcoded and of course it changed since then but the hardcoded magic number was not updated.
Instead of hardcoding, use the enum counter constant. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1212
-- Commit Summary --
* Addons: Fix Wordwrap wrong keybinding use
-- File Changes --
M addons/src/addons.c (14) M addons/src/addons.h (11) M addons/src/ao_wrapwords.c (2)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1212.patch https://github.com/geany/geany-plugins/pull/1212.diff
LGBI
Merged #1212 into master.
github-comments@lists.geany.org