[geany/geany] 9313b1: Don't accumulate multiple colourises

Jiří Techet git-noreply at xxxxx
Tue May 17 20:09:48 UTC 2016


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Tue, 17 May 2016 20:09:48 UTC
Commit:      9313b17559f4ea60acae95db96523dbd02c80e35
             https://github.com/geany/geany/commit/9313b17559f4ea60acae95db96523dbd02c80e35

Log Message:
-----------
Don't accumulate multiple colourises

I don't know if this ever happens but the check shouldn't hurt.


Modified Paths:
--------------
    src/document.c

Modified: src/document.c
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -512,6 +512,9 @@ static gint document_get_new_idx(void)
 
 static void queue_colourise(GeanyDocument *doc)
 {
+	if (doc->priv->colourise_needed)
+		return;
+
 	/* Colourise the editor before it is next drawn */
 	doc->priv->colourise_needed = TRUE;
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list