Merge pull request #273 from jpallen/master
Small change to let Ace work with useWrapMode = true in Cloud9
This commit is contained in:
commit
56b28d4ca7
1 changed files with 2 additions and 2 deletions
|
|
@ -1088,8 +1088,8 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (useWrapMode && this.$wrapData.length != this.doc.$lines.length) {
|
if (useWrapMode && this.$wrapData.length != this.doc.getLength()) {
|
||||||
console.error("The length of doc.$lines and $wrapData have to be the same!");
|
console.error("doc.getLength() and $wrapData.length have to be the same!");
|
||||||
}
|
}
|
||||||
|
|
||||||
useWrapMode && this.$updateWrapData(firstRow, lastRow);
|
useWrapMode && this.$updateWrapData(firstRow, lastRow);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue