[gtksourceview/wip/albfan/bom: 5/5] Allow up to 2 invalid segments
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/albfan/bom: 5/5] Allow up to 2 invalid segments
- Date: Sat, 20 Apr 2019 10:00:30 +0000 (UTC)
commit 61f07c6110982dd5f427531ae7dc6ff644ef4813
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Sat Apr 20 11:28:00 2019 +0200
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]