mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Clear the dimensions cache after updating the soft wrap column
Updating the soft wrap column could cause us to compute different values for derived dimensions, so any dimensions that were cached *in the process* of updating the soft wrap column need to be cleared.
This commit is contained in:
@@ -2118,6 +2118,7 @@ class TextEditorComponent {
|
||||
// rendered start row accurately. 😥
|
||||
this.populateVisibleRowRange(renderedStartRow)
|
||||
this.props.model.setEditorWidthInChars(this.getScrollContainerClientWidthInBaseCharacters())
|
||||
this.derivedDimensionsCache = {}
|
||||
|
||||
this.suppressUpdates = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user