Only autoscroll selections in the model when managing scroll position

This commit is contained in:
Nathan Sobo
2014-04-23 12:41:56 -06:00
parent f8727ffa6f
commit 283966dbb9

View File

@@ -78,7 +78,7 @@ class Selection extends Model
@modifySelection =>
@cursor.needsAutoscroll = false if @needsAutoscroll?
@marker.setBufferRange(bufferRange, options)
@autoscroll() if @needsAutoscroll
@autoscroll() if @needsAutoscroll and @editor.manageScrollPosition
# Public: Returns the starting and ending buffer rows the selection is
# highlighting.