From 86ea4d94bb9d689ebf5cbf8289774f02f7b8df88 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 9 Jul 2014 07:46:44 -0600 Subject: [PATCH] Only autoscroll in model when adding selection in React editors Fixes atom/find-and-replace#245 --- src/editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.coffee b/src/editor.coffee index 56c62d12d..5e0eb0b2a 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -1264,7 +1264,7 @@ class Editor extends Model addSelectionForBufferRange: (bufferRange, options={}) -> @markBufferRange(bufferRange, _.defaults(@getSelectionMarkerAttributes(), options)) selection = @getLastSelection() - selection.autoscroll() + selection.autoscroll() if @manageScrollPosition selection # Public: Set the selected range in buffer coordinates. If there are multiple