Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: GitHub noreply@github.com Date: Thu, 05 Jan 2017 09:32:48 UTC Commit: b1ec04149df3b27a060b6cc59071f87c76ae035b https://github.com/geany/geany-plugins/commit/b1ec04149df3b27a060b6cc59071f8...
Log Message: ----------- Merge pull request #514 from frlan/enhancement/automark/prevent_warnings
Automark: Don't try to get some selection if line is empty
Modified Paths: -------------- automark/src/automark.c
Modified: automark/src/automark.c 3 lines changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -87,6 +87,9 @@ get_current_word(ScintillaObject *sci) gint start = SSM(sci, SCI_WORDSTARTPOSITION, pos, TRUE); gint end = SSM(sci, SCI_WORDENDPOSITION, pos, TRUE);
+ if (end == start) + return NULL; + if ((guint)(end - start) >= GEANY_MAX_WORD_LENGTH) end = start + (GEANY_MAX_WORD_LENGTH - 1); return sci_get_contents_range(sci, start, end);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org