clear cache of bgtokenizer on setting document
This commit is contained in:
parent
8e372f1f15
commit
e0c8661bf5
1 changed files with 3 additions and 0 deletions
|
|
@ -91,6 +91,9 @@ var EditSession = function(text, mode) {
|
|||
this.doc = doc;
|
||||
doc.on("change", this.onChange.bind(this));
|
||||
this.on("changeFold", this.onChangeFold.bind(this));
|
||||
|
||||
this.bgTokenizer.setDocument(this.getDocument());
|
||||
this.bgTokenizer.start(0);
|
||||
};
|
||||
|
||||
this.getDocument = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue