From 3e7567b5210d34e61524778b5c470dfeaffd3063 Mon Sep 17 00:00:00 2001 From: Julian Viereck Date: Sat, 23 Apr 2011 22:01:22 +0200 Subject: [PATCH] Fix bug in TextLayer.updateLines due to FoldLine refactoring --- lib/ace/layer/text.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ace/layer/text.js b/lib/ace/layer/text.js index eac5dc0e..aabefabd 100644 --- a/lib/ace/layer/text.js +++ b/lib/ace/layer/text.js @@ -191,10 +191,7 @@ var Text = function(parentEl) { for (var row = config.firstRow; row < first; row++) { lineElementsIdx ++; - if (this.session.isRowFolded(row)) { - var fold = this.session.getRowLastFold(row); - row = fold.end.row; - } + row = this.session.getRowFoldEnd(row); } for (var i=first; i<=last; i++) {