diff --git a/src/text-editor-presenter.coffee b/src/text-editor-presenter.coffee index f8aee4370..08d83b59e 100644 --- a/src/text-editor-presenter.coffee +++ b/src/text-editor-presenter.coffee @@ -30,7 +30,14 @@ class TextEditorPresenter @emitter.on 'did-update-state', callback observeModel: -> - @disposables.add @model.onDidChange(@updateState.bind(this)) + @disposables.add @model.onDidChange => + @updateHeightState() + @updateVerticalScrollState() + @updateHorizontalScrollState() + @updateContentState() + @updateLinesState() + @updateGutterState() + @updateLineNumbersState() @disposables.add @model.onDidChangeSoftWrapped(@updateState.bind(this)) @disposables.add @model.onDidChangeGrammar(@updateContentState.bind(this)) @disposables.add @model.onDidChangePlaceholderText(@updateContentState.bind(this))