From 04e83afee1747c0effc1735d7d58f4d1547bd01a Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 15 Apr 2012 13:58:08 +0400 Subject: [PATCH] do not redraw whole editor when only one cursor is visible --- lib/ace/layer/cursor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/layer/cursor.js b/lib/ace/layer/cursor.js index 38b4adbc..1c55d7a8 100644 --- a/lib/ace/layer/cursor.js +++ b/lib/ace/layer/cursor.js @@ -107,11 +107,11 @@ var Cursor = function(parentEl) { if (!this.isVisible) return; - var element = this.element; + var element = this.cursors.length == 1 ? this.cursor : this.element; this.blinkId = setInterval(function() { element.style.visibility = "hidden"; setTimeout(function() { - element.style.visibility = "visible"; + element.style.visibility = ""; }, 400); }, 1000); };