fix gutter not updating when out of screen changeLines is scheduled

because of this setAnnotations was not working
   when background tokenizer was active
This commit is contained in:
nightwing 2012-08-07 14:46:23 +04:00
commit 5fc87d9489

View file

@ -720,12 +720,10 @@ var VirtualRenderer = function(container, theme) {
this.$gutterLayer.update(this.layerConfig);
}
else if (changes & this.CHANGE_LINES) {
if (this.$updateLines()) {
this.$updateScrollBar();
if (this.showGutter)
this.$gutterLayer.update(this.layerConfig);
}
} else if (changes & this.CHANGE_GUTTER) {
if (this.$updateLines() || (changes & this.CHANGE_GUTTER) && this.showGutter)
this.$gutterLayer.update(this.layerConfig);
}
else if (changes & this.CHANGE_TEXT || changes & this.CHANGE_GUTTER) {
if (this.showGutter)
this.$gutterLayer.update(this.layerConfig);
}