src/Builder4/WindowRooView.bjs
[app.Builder.js] / src / Builder4 / WindowRooView.vala
index 3b1e516..fdd2915 100644 (file)
@@ -1031,9 +1031,9 @@ public class Xcls_WindowRooView : Object
             
                return false;
             });
-            this.el.key_press_event.connect( () {
-               this.updateGreySelection();
-            
+            this.el.key_press_event.connect( () => {
+               this.onCursorChanged();
+               return false; 
             });
         }
 
@@ -1273,7 +1273,7 @@ public class Xcls_WindowRooView : Object
                                        var first_line  = this.el.buffer.get_text(start_line_iter, end_line_iter, false);
                                        print("first line = %s\n", first_line);
                                        if (first_line.contains(":")) {
-                                               colon_pos = start_line_iter.get_offset() + first_line.index_of(":");
+                                               colon_pos = start_line_iter.get_offset() + first_line.index_of(":") + 1;
                                        }
                                        print("colon_pos  = %d\n", colon_pos);
                                }
@@ -1459,13 +1459,15 @@ public class Xcls_WindowRooView : Object
                
                 
         
-               return this.highlightErrors(p.validateJavascript(
+               return p.javascriptHasErrors(
+                       _this.main_window.windowstate,
                 str, 
                  "", // _this.key, 
                 "file", //_this.ptype,
                 _this.file,
+                null,
                 null
-            ));    
+            );    
              
         }
     }