From 83cf35e7ea95c8d13fbae7decce7418036e8b021 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 4 Feb 2013 18:06:43 +0400 Subject: [PATCH] move textarea and gutter-line-highlight to main cursor --- lib/ace/layer/cursor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/layer/cursor.js b/lib/ace/layer/cursor.js index bd0219a4..26ade52b 100644 --- a/lib/ace/layer/cursor.js +++ b/lib/ace/layer/cursor.js @@ -170,7 +170,7 @@ var Cursor = function(parentEl) { selections = [{cursor: null}]; } - for (var i = selections.length; i--; ) { + for (var i = 0, n = selections.length; i < n; i++) { var pixelPos = this.getPixelPosition(selections[i].cursor, true); if ((pixelPos.top > config.height + config.offset || pixelPos.top < -config.offset) && i > 1) {