From 9df25e45aee5e750abe3e18f676ef55b52c6ed3e Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 7 Sep 2015 13:40:23 +0200 Subject: [PATCH] Reflow only focused editors --- src/text-editor-presenter.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text-editor-presenter.coffee b/src/text-editor-presenter.coffee index 7bacfb466..e4305dfc4 100644 --- a/src/text-editor-presenter.coffee +++ b/src/text-editor-presenter.coffee @@ -269,8 +269,8 @@ class TextEditorPresenter @resetTrackedUpdates() updateReflowState: -> - @state.content.continuousReflow = @continuousReflow - @lineNumberGutter.continuousReflow = @continuousReflow + @state.content.continuousReflow = @focused and @continuousReflow + @lineNumberGutter.continuousReflow = @focused and @continuousReflow startReflowing: -> @reflowingInterval = setInterval(@emitDidUpdateState.bind(this), @minimumReflowInterval)