Fix #8003 - undo code
[roobuilder] / src / Builder4 / GtkView.vala
index 73202c5..015788e 100644 (file)
@@ -348,7 +348,9 @@ public class Xcls_GtkView : Object
                        buf.remove_tag_by_name ("ERR", start, end);
                        buf.remove_tag_by_name ("WARN", start, end);
                        buf.remove_tag_by_name ("DEPR", start, end);
-                       buf.remove_source_marks (start, end, null);
+                       buf.remove_source_marks (start, end, "ERR");
+                       buf.remove_source_marks (start, end, "WARN");
+                       buf.remove_source_marks (start, end, "DEPR");
                        this.last_error_counter = file.error_counter ;
                        GLib.debug("higjlight has no errors");
                        return;
@@ -365,7 +367,9 @@ public class Xcls_GtkView : Object
                
         
                 
-               buf.remove_source_marks (start, end, null);
+               buf.remove_source_marks (start, end, "ERR");
+               buf.remove_source_marks (start, end, "WARN");
+               buf.remove_source_marks (start, end, "DEPR");
                buf.remove_tag_by_name ("ERR", start, end);
                buf.remove_tag_by_name ("WARN", start, end);
                buf.remove_tag_by_name ("DEPR", start, end);