Skip to content

Commit

Permalink
Only autoscroll selections in the model when managing scroll position
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sobo committed Apr 23, 2014
1 parent f8727ff commit 283966d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selection.coffee
Expand Up @@ -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.
Expand Down

0 comments on commit 283966d

Please sign in to comment.