src/Builder4/WindowRooView.bjs
[app.Builder.js] / src / Builder4 / WindowRooView.vala
index f50a17d..4582600 100644 (file)
@@ -1135,6 +1135,9 @@ public class Xcls_WindowRooView : Object
             this.node_selected = sel;
             
             this.updateGreySelection(scroll);
+            
+            
+            
         }
         public string toString () {
            Gtk.TextIter s;
@@ -1335,7 +1338,12 @@ public class Xcls_WindowRooView : Object
                 }
             
             }
-            
+            if (scroll) {
+                   Gtk.TextIter cpos_iter;
+                       buf.get_iter_at_line(out cpos_iter, start_line);
+                       buf.place_cursor(cpos_iter); 
+               }
+        
         
         }
         public void highlightErrorsJson (string type, Json.Object obj) {
@@ -1461,14 +1469,14 @@ public class Xcls_WindowRooView : Object
                        return false; // fake syntax error.
                }
                
-                
+            //Gee.HashMap<int,string> ret_x;
         
                return p.javascriptHasErrors(
                        _this.main_window.windowstate,
                 str, 
                  "", // _this.key, 
                 "file", //_this.ptype,
-                _this.file,
+                _this.file, 
                 null
             );