return false;
});
- this.el.key_press_event.connect( () {
- this.updateGreySelection();
-
+ this.el.key_press_event.connect( () => {
+ this.onCursorChanged();
+ return false;
});
}
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);
}
- return this.highlightErrors(p.validateJavascript(
+ return p.javascriptHasErrors(
+ _this.main_window.windowstate,
str,
"", // _this.key,
"file", //_this.ptype,
_this.file,
+ null,
null
- ));
+ );
}
}