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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1212
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/pull/1...@github.com>

Reply via email to