From 70925263f719852fd78d98053ef516db8b30d76e Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 31 Oct 2013 17:28:42 -0700 Subject: [PATCH] Add ability to specify rowCount to selectUp and selectDown() --- src/edit-session.coffee | 8 ++++---- src/selection.coffee | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/edit-session.coffee b/src/edit-session.coffee index 0c594eeb1..b1bf5f7c5 100644 --- a/src/edit-session.coffee +++ b/src/edit-session.coffee @@ -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. diff --git a/src/selection.coffee b/src/selection.coffee index 139ac9da0..483f9d32f 100644 --- a/src/selection.coffee +++ b/src/selection.coffee @@ -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.