Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: GitHub noreply@github.com Date: Sun, 01 Jan 2023 16:47:28 UTC Commit: a8fd23125049d0a0ae8655e2bf95d3f447b3dacd https://github.com/geany/geany-plugins/commit/a8fd23125049d0a0ae8655e2bf95d3...
Log Message: ----------- Merge pull request #1212 from eht16/addons_fix_wordwrap_kb_count
Addons: Fix Wordwrap wrong keybinding use
Modified Paths: -------------- addons/src/addons.c addons/src/addons.h addons/src/ao_wrapwords.c
Modified: addons/src/addons.c 14 lines changed, 1 insertions(+), 13 deletions(-) =================================================================== @@ -46,18 +46,6 @@ GeanyPlugin *geany_plugin = NULL; GeanyData *geany_data = NULL;
-/* Keybinding(s) */ -enum -{ - KB_FOCUS_BOOKMARK_LIST, - KB_FOCUS_TASKS, - KB_UPDATE_TASKS, - KB_XMLTAGGING, - KB_COPYFILEPATH, - KB_COUNT -}; - - typedef struct { /* general settings */ @@ -137,7 +125,7 @@ static gboolean ao_editor_notify_cb(GObject *object, GeanyEditor *editor, SCNotification *nt, gpointer data) { ao_bookmark_list_update_marker(ao_info->bookmarklist, editor, nt); - + ao_mark_editor_notify(ao_info->markword, editor, nt);
ao_color_tip_editor_notify(ao_info->colortip, editor, nt);
Modified: addons/src/addons.h 11 lines changed, 11 insertions(+), 0 deletions(-) =================================================================== @@ -25,6 +25,17 @@ #ifndef ADDONS_H #define ADDONS_H 1
+/* Keybinding(s) */ +enum +{ + KB_FOCUS_BOOKMARK_LIST, + KB_FOCUS_TASKS, + KB_UPDATE_TASKS, + KB_XMLTAGGING, + KB_COPYFILEPATH, + KB_COUNT +}; +
extern GeanyPlugin *geany_plugin; extern GeanyData *geany_data;
Modified: addons/src/ao_wrapwords.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -64,7 +64,7 @@ void enclose_text_action (guint key_id) if (sci_get_selected_text_length (sci_obj) < 2) return;
- key_id -= 4; + key_id -= KB_COUNT; selection_end = sci_get_selection_end (sci_obj);
sci_start_undo_action (sci_obj);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).