Commit 3ab568fd authored by Alberto Fanjul's avatar Alberto Fanjul

Remove path to gtksourceview for BOM files

parent c5114edc
Pipeline #76785 passed with stages
in 9 minutes and 26 seconds
From 4ffc03c56540e5920f2701bb9342773f19d599e4 Mon Sep 17 00:00:00 2001
From: Alberto Fanjul <albertofanjul@gmail.com>
Date: Sat, 20 Apr 2019 11:28:00 +0200
Subject: [PATCH] Allow up to 2 invalid segments
Seems files with BOM cause this situation, but there's no other
side effect
---
gtksourceview/gtksourcecontextengine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index f74ec78e..2d00f171 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -5540,7 +5540,7 @@ update_syntax (GtkSourceContextEngine *ce,
if (analyzed_end == gtk_text_buffer_get_char_count (buffer))
{
- g_assert (g_slist_length (ce->priv->invalid) <= 1);
+ g_assert (g_slist_length (ce->priv->invalid) <= 2);
if (ce->priv->invalid != NULL)
{
--
2.21.0
......@@ -140,10 +140,6 @@
"type" : "git",
"url" : "https://gitlab.gnome.org/GNOME/gtksourceview.git",
"tag" : "gnome-3-24"
},
{
"type": "patch",
"path": "allow-up-to-2-invalid-segments.patch"
}
]
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment