mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user