Merge pull request #273 from jpallen/master

Small change to let Ace work with useWrapMode = true in Cloud9
This commit is contained in:
Fabian Jakobs 2011-05-27 00:44:27 -07:00
commit 56b28d4ca7

View file

@ -1088,8 +1088,8 @@ var EditSession = function(text, mode) {
}
}
if (useWrapMode && this.$wrapData.length != this.doc.$lines.length) {
console.error("The length of doc.$lines and $wrapData have to be the same!");
if (useWrapMode && this.$wrapData.length != this.doc.getLength()) {
console.error("doc.getLength() and $wrapData.length have to be the same!");
}
useWrapMode && this.$updateWrapData(firstRow, lastRow);