[gtksourceview/gnome-3-24] languagemanager: avoid double entry of language by glob



commit 17db87c16b63df4614d51d829e5f3c4c6b0dfaa5
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 3f56a35c..6cfe9b75 100644
--- a/gtksourceview/gtksourcelanguagemanager.c
+++ b/gtksourceview/gtksourcelanguagemanager.c
@@ -486,6 +486,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]