Make things work again afte rebasing.

This commit is contained in:
Julian Viereck 2011-04-28 21:47:35 +02:00
commit acc318af90
2 changed files with 1 additions and 7 deletions

View file

@ -76,12 +76,6 @@ var EditSession = function(text, mode) {
this.setMode(mode);
else
this.setMode(new TextMode());
// Set the initial foldData content.
var foldData = this.$foldData = [];
for (var row = 0; row < this.doc.$lines.length; row++) {
foldData.push(false);
}
};

View file

@ -465,7 +465,7 @@ var Text = function(parentEl) {
});
} else {
if (isNewRow) {
tokens = this.tokenizer.getTokens(row, row)[0].tokens;
tokens = this.session.getTokens(row, row)[0].tokens;
}
if (tokens.length != 0) {
addTokens(tokens, lastColumn, column);