mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
💄
This commit is contained in:
@@ -57,12 +57,12 @@ LinesComponent = React.createClass
|
||||
false
|
||||
|
||||
componentDidUpdate: (prevProps) ->
|
||||
@updateRenderedLines()
|
||||
@updateLines()
|
||||
@measureLineHeightAndCharWidth() unless isEqualForProperties(prevProps, @props, 'fontSize', 'fontFamily', 'lineHeight')
|
||||
@clearScopedCharWidths() unless isEqualForProperties(prevProps, @props, 'fontSize', 'fontFamily')
|
||||
@measureCharactersInNewLines() unless @props.scrollingVertically
|
||||
|
||||
updateRenderedLines: ->
|
||||
updateLines: ->
|
||||
{editor, visibleRowRange, showIndentGuide, selectionChanged} = @props
|
||||
[startRow, endRow] = visibleRowRange
|
||||
visibleLines = editor.linesForScreenRows(startRow, endRow - 1)
|
||||
|
||||
Reference in New Issue
Block a user