diff --git a/lib/ace/edit_session.js b/lib/ace/edit_session.js index 6afa7107..14d195a8 100644 --- a/lib/ace/edit_session.js +++ b/lib/ace/edit_session.js @@ -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);