From d58ac71ad806e212803d1cdbc6f3e9e27382636d Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 24 May 2011 19:55:54 +0100 Subject: [PATCH] Use doc.getLength() to be compatible with ProxyDocument in Cloud9 --- lib/ace/edit_session.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);