mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Only autoscroll selections in the model when managing scroll position
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user