Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 29 Oct 2017 14:04:02 UTC Commit: 1e58338c262dae49abe55f994505dee8ec695f31 https://github.com/geany/geany-plugins/commit/1e58338c262dae49abe55f994505de...
Log Message: ----------- Remove trailing spaces
Modified Paths: -------------- addons/src/ao_markword.c
Modified: addons/src/ao_markword.c 14 lines changed, 7 insertions(+), 7 deletions(-) =================================================================== @@ -176,21 +176,21 @@ void ao_mark_editor_notify(AoMarkWord *mw, GeanyEditor *editor, SCNotification * // If something is about to be deleted and there is selected text clear the markers if(nt->nmhdr.code == SCN_MODIFIED && ((nt->modificationType & SC_MOD_BEFOREDELETE) == SC_MOD_BEFOREDELETE) && - sci_has_selection(editor->sci)) + sci_has_selection(editor->sci)) { AoMarkWordPrivate *priv = AO_MARKWORD_GET_PRIVATE(mw); - + if(priv->enable_markword && priv->enable_single_click_deselect) clear_marker(); - } - + } + // In single click deselect mode, clear the markers when the cursor moves - else if(nt->nmhdr.code == SCN_UPDATEUI && + else if(nt->nmhdr.code == SCN_UPDATEUI && nt->updated == SC_UPDATE_SELECTION && - !sci_has_selection(editor->sci)) + !sci_has_selection(editor->sci)) { AoMarkWordPrivate *priv = AO_MARKWORD_GET_PRIVATE(mw); - + if(priv->enable_markword && priv->enable_single_click_deselect) clear_marker(); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org