From 0ca8f694c68e39bda325856e3a18f80ebe9d7f89 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 11 May 2012 12:02:27 +0400 Subject: [PATCH] remove redundant full redraw this was needed when lines had width in style attribute --- lib/ace/virtual_renderer.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/ace/virtual_renderer.js b/lib/ace/virtual_renderer.js index 190471fa..d774383e 100644 --- a/lib/ace/virtual_renderer.js +++ b/lib/ace/virtual_renderer.js @@ -810,10 +810,6 @@ var VirtualRenderer = function(container, theme) { var layerConfig = this.layerConfig; - // if the update changes the width of the document do a full redraw - if (layerConfig.width != this.$getLongestLine()) - return this.$textLayer.update(layerConfig); - if (firstRow > layerConfig.lastRow + 1) { return; } if (lastRow < layerConfig.firstRow) { return; }