diff --git a/src/text-editor-presenter.coffee b/src/text-editor-presenter.coffee index d2afd9efc..6e4c8e928 100644 --- a/src/text-editor-presenter.coffee +++ b/src/text-editor-presenter.coffee @@ -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?