[gtksourceview/gnome-3-24] languagemanager: avoid double entry of language by glob
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-24] languagemanager: avoid double entry of language by glob
- Date: Sun, 17 Feb 2019 22:48:43 +0000 (UTC)
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]