mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Only autoscroll in model when adding selection in React editors
Fixes atom/find-and-replace#245
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user