misc fixes

This commit is contained in:
nightwing 2013-11-24 16:16:36 +04:00
commit 4cb1e7b849
3 changed files with 20 additions and 18 deletions

View file

@ -952,8 +952,8 @@ var EditSession = function(text, mode) {
if (!$isPlaceholder) {
this.$options.wrapMethod.set.call(this, this.$wrapMethod);
this.$setFolding(mode.foldingRules);
this._emit("changeMode");
this.bgTokenizer.start(0);
this._emit("changeMode");
}
};