mirror of
https://github.com/atom/atom.git
synced 2026-02-04 19:54:59 -05:00
Replace calls to renderLines w/ resetDisplay in Editor
This commit is contained in:
@@ -277,10 +277,10 @@ class Editor extends View
|
||||
setShowInvisibles: (showInvisibles) ->
|
||||
return if showInvisibles == @showInvisibles
|
||||
@showInvisibles = showInvisibles
|
||||
@renderLines()
|
||||
@resetDisplay()
|
||||
|
||||
setInvisibles: (@invisibles={}) ->
|
||||
@renderLines()
|
||||
@resetDisplay()
|
||||
|
||||
checkoutHead: -> @getBuffer().checkoutHead()
|
||||
setText: (text) -> @getBuffer().setText(text)
|
||||
@@ -737,10 +737,6 @@ class Editor extends View
|
||||
@overlayer.css('min-width', minWidth)
|
||||
@layerMinWidth = minWidth
|
||||
|
||||
renderLines: ->
|
||||
@clearRenderedLines()
|
||||
@updateDisplay()
|
||||
|
||||
clearRenderedLines: ->
|
||||
@renderedLines.empty()
|
||||
@firstRenderedScreenRow = null
|
||||
|
||||
Reference in New Issue
Block a user