Browse files

Defer gutter refresh until cursor is rendered

   based on pull #866
  • Loading branch information...
1 parent 5316f97 commit 45ee0cd1210803d89edf0a72c6fa9bb7061cc190 @nightwing nightwing committed Aug 9, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/ace/virtual_renderer.js
View
4 lib/ace/virtual_renderer.js
@@ -483,7 +483,9 @@ var VirtualRenderer = function(container, theme) {
}
this.$gutterLineHighlight.style.display = shouldHighlight ? "" : "none";
- this.$updateGutterLineHighlight();
+ // if cursorlayer have never been updated there's nothing on screen to update
+ if (this.$cursorLayer.$pixelPos)
+ this.$updateGutterLineHighlight();
};
this.getHighlightGutterLine = function() {

0 comments on commit 45ee0cd

Please sign in to comment.