Merge pull request #15339 from atom/ns-as-clear-lines-to-measure-later

Only clear linesToMeasure when we have actually measured
This commit is contained in:
Antonio Scandurra
2017-08-16 20:08:59 +02:00
committed by GitHub
2 changed files with 21 additions and 1 deletions

View File

@@ -32,6 +32,10 @@ class TextEditorComponent {
etch.setScheduler(scheduler)
}
static getScheduler () {
return etch.getScheduler()
}
static didUpdateStyles () {
if (this.attachedComponents) {
this.attachedComponents.forEach((component) => {
@@ -389,6 +393,7 @@ class TextEditorComponent {
this.pendingAutoscroll = null
}
this.linesToMeasure.clear()
this.measuredContent = true
}
@@ -849,7 +854,6 @@ class TextEditorComponent {
this.extraRenderedScreenLines.set(row, screenLine)
}
})
this.linesToMeasure.clear()
}
queryLineNumbersToRender () {