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:
parent
6e513610b3
commit
5fc87d9489
1 changed files with 4 additions and 6 deletions
|
|
@ -720,12 +720,10 @@ var VirtualRenderer = function(container, theme) {
|
||||||
this.$gutterLayer.update(this.layerConfig);
|
this.$gutterLayer.update(this.layerConfig);
|
||||||
}
|
}
|
||||||
else if (changes & this.CHANGE_LINES) {
|
else if (changes & this.CHANGE_LINES) {
|
||||||
if (this.$updateLines()) {
|
if (this.$updateLines() || (changes & this.CHANGE_GUTTER) && this.showGutter)
|
||||||
this.$updateScrollBar();
|
this.$gutterLayer.update(this.layerConfig);
|
||||||
if (this.showGutter)
|
}
|
||||||
this.$gutterLayer.update(this.layerConfig);
|
else if (changes & this.CHANGE_TEXT || changes & this.CHANGE_GUTTER) {
|
||||||
}
|
|
||||||
} else if (changes & this.CHANGE_GUTTER) {
|
|
||||||
if (this.showGutter)
|
if (this.showGutter)
|
||||||
this.$gutterLayer.update(this.layerConfig);
|
this.$gutterLayer.update(this.layerConfig);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue