matching tag fixes
remove global editor ref, add listener
This commit is contained in:
parent
07fb7738db
commit
da5cc2e28d
1 changed files with 2 additions and 1 deletions
|
|
@ -554,7 +554,7 @@ var Editor = function(renderer, session) {
|
|||
setTimeout(function() {
|
||||
self.$highlightTagPending = false;
|
||||
|
||||
var pos = editor.getCursorPosition();
|
||||
var pos = self.getCursorPosition();
|
||||
var iterator = new TokenIterator(self.session, pos.row, pos.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
|
||||
|
|
@ -729,6 +729,7 @@ var Editor = function(renderer, session) {
|
|||
}
|
||||
|
||||
this.$highlightBrackets();
|
||||
this.$highlightTags();
|
||||
this.$updateHighlightActiveLine();
|
||||
this._signal("changeSelection");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue