[gtksourceview] languagemanager: avoid double entry of language by glob



commit e6a2ae2bb5071a7748be1a385b4969365ced0819
Author: Nikita Zlobin <nick87720z gmail com>
Date:   Sat Feb 16 20:19:55 2019 +0500

    languagemanager: avoid double entry of language by glob

 gtksourceview/gtksourcelanguagemanager.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtksourceview/gtksourcelanguagemanager.c b/gtksourceview/gtksourcelanguagemanager.c
index 4a1eb10d..eeba8a71 100644
--- a/gtksourceview/gtksourcelanguagemanager.c
+++ b/gtksourceview/gtksourcelanguagemanager.c
@@ -484,6 +484,7 @@ pick_langs_for_filename (GtkSourceLanguageManager *lm,
                        if (g_pattern_match_simple (*gptr, filename_utf8))
                        {
                                langs = g_slist_prepend (langs, lang);
+                               break;
                        }
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]