src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 28 Jan 2024 11:38:02 +0000 (19:38 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 28 Jan 2024 11:38:02 +0000 (19:38 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index 1ff6b8d..f0169ca 100644 (file)
     "\t} else {",
     "\t\t// no update...",
     "\t\tif (this.last_error_counter == file.error_counter) {",
+    "\t\t\tthis.last_error_counter = file.error_counter ;",
     "\t\t\treturn;",
     "\t\t}",
     "\t",
     "\t    ",
     "\t    ",
     "\t    if (eline > tlines || eline < 0) {",
-    "\t        return;",
+    "",
+    "\t        continue;",
     "\t    }",
     "\t   ",
     "\t    ",
     "\t   // GLib.debug(\"set line %d to %s\", eline, msg);",
     "\t    //this.marks.set(eline, msg);",
     "\t}",
-    "\treturn ;",
+    "\tthis.last_error_counter = file.error_counter ;",
     "",
     "",
     "",
index c58fa24..afd443f 100644 (file)
@@ -302,6 +302,7 @@ public class Editor : Object
                } else {
                        // no update...
                        if (this.last_error_counter == file.error_counter) {
+                               this.last_error_counter = file.error_counter ;
                                return;
                        }
                
@@ -317,7 +318,8 @@ public class Editor : Object
                    
                    
                    if (eline > tlines || eline < 0) {
-                       return;
+       
+                       continue;
                    }
                   
                    
@@ -329,7 +331,7 @@ public class Editor : Object
                   // GLib.debug("set line %d to %s", eline, msg);
                    //this.marks.set(eline, msg);
                }
-               return ;
+               this.last_error_counter = file.error_counter ;