[gtksourceview] Revert "contextengine: clear invalid ranges if BOM is found"



commit 0d4b0e42ac8bc683aabc3d22ea77c18fd915fe82
Author: Christian Hergert <chergert redhat com>
Date:   Tue Dec 1 13:34:53 2020 -0800

    Revert "contextengine: clear invalid ranges if BOM is found"
    
    This reverts commit 54e48e9c45e0ccef4d8fd8f5b9a8660aa6b0ae0b.
    
    Now that we have other measures in place to protect against BOM,
    we can remove this commit which caused all highlighting to be
    stopped after the line with the BOM.

 gtksourceview/gtksourcecontextengine.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index a970d793..3128d7fd 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -5377,8 +5377,6 @@ update_syntax (GtkSourceContextEngine *ce,
                        had_bom = TRUE;
                        gtk_text_iter_forward_char (&start_iter);
                        start_offset = gtk_text_iter_get_offset (&start_iter);
-                       segment_remove (ce, invalid);
-                       CHECK_TREE (ce);
                }
        }
 


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