mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
🎨 Remove unnecessary newlines
This commit is contained in:
@@ -36,7 +36,7 @@ class TextEditorPresenter
|
||||
@emitter.on 'needs-update', callback
|
||||
|
||||
needsUpdate: ->
|
||||
@emitter.emit "needs-update" unless @updating
|
||||
@emitter.emit "needs-update" if @isBatching()
|
||||
|
||||
transferMeasurementsToModel: ->
|
||||
@model.setHeight(@explicitHeight) if @explicitHeight?
|
||||
@@ -442,7 +442,6 @@ class TextEditorPresenter
|
||||
startRow = Math.floor(@scrollTop / @lineHeight) - @lineOverdrawMargin
|
||||
@startRow = Math.max(0, startRow)
|
||||
|
||||
|
||||
updateEndRow: ->
|
||||
return unless @scrollTop? and @lineHeight? and @height?
|
||||
|
||||
@@ -451,7 +450,6 @@ class TextEditorPresenter
|
||||
endRow = startRow + visibleLinesCount + @lineOverdrawMargin
|
||||
@endRow = Math.min(@model.getScreenLineCount(), endRow)
|
||||
|
||||
|
||||
updateScrollWidth: ->
|
||||
return unless @contentWidth? and @clientWidth?
|
||||
|
||||
@@ -492,7 +490,6 @@ class TextEditorPresenter
|
||||
@updateScrollbarDimensions()
|
||||
@updateScrollWidth()
|
||||
|
||||
|
||||
updateClientHeight: ->
|
||||
return unless @height? and @horizontalScrollbarHeight?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user