Add ability to specify rowCount to selectUp and selectDown()

This commit is contained in:
Ben Ogle 2013-10-31 17:28:42 -07:00
parent 166faf1af2
commit 70925263f7
2 changed files with 8 additions and 8 deletions

View File

@ -1188,12 +1188,12 @@ class EditSession
@expandSelectionsBackward (selection) => selection.selectLeft()
# Public: Selects all the text one position above all local cursors.
selectUp: ->
@expandSelectionsBackward (selection) => selection.selectUp()
selectUp: (rowCount) ->
@expandSelectionsBackward (selection) => selection.selectUp(rowCount)
# Public: Selects all the text one position below all local cursors.
selectDown: ->
@expandSelectionsForward (selection) => selection.selectDown()
selectDown: (rowCount) ->
@expandSelectionsForward (selection) => selection.selectDown(rowCount)
# Public: Selects all the text from all local cursors to the top of the
# buffer.

View File

@ -182,12 +182,12 @@ class Selection
@modifySelection => @cursor.moveLeft()
# Public: Selects all the text one position above the cursor.
selectUp: ->
@modifySelection => @cursor.moveUp()
selectUp: (rowCount) ->
@modifySelection => @cursor.moveUp(rowCount)
# Public: Selects all the text one position below the cursor.
selectDown: ->
@modifySelection => @cursor.moveDown()
selectDown: (rowCount) ->
@modifySelection => @cursor.moveDown(rowCount)
# Public: Selects all the text from the current cursor position to the top of
# the buffer.