return false;
});
+ this.el.key_press_event.connect( () => {
+ this.onCursorChanged();
+ return false;
+ });
+ this.el.key_release_event.connect( () => {
+ // in theory this should be after a change has been done..
+
+
+ });
}
// user defined functions
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);
}