Don’t autoscroll to selection when double- or triple-click dragging

This commit is contained in:
Nathan Sobo
2015-07-28 16:16:34 -06:00
parent c578708aaf
commit d1dec4e0cf
2 changed files with 56 additions and 2 deletions

View File

@@ -324,7 +324,8 @@ class Selection extends Model
# Public: Expands the newest selection to include the entire word on which
# the cursors rests.
expandOverWord: ->
@setBufferRange(@getBufferRange().union(@cursor.getCurrentWordBufferRange()))
@setBufferRange(@getBufferRange().union(@cursor.getCurrentWordBufferRange()), autoscroll: false)
@cursor.autoscroll()
# Public: Selects an entire line in the buffer.
#
@@ -342,7 +343,8 @@ class Selection extends Model
# It also includes the newline character.
expandOverLine: ->
range = @getBufferRange().union(@cursor.getCurrentLineBufferRange(includeNewline: true))
@setBufferRange(range)
@setBufferRange(range, autoscroll: false)
@cursor.autoscroll()
###
Section: Modifying the selected text