From f35344d4a31ea88934ccf310f24419cb708a3a44 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 3 Apr 2012 11:33:02 -0600 Subject: [PATCH] :lipstick: --- src/atom/composite-selection.coffee | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/atom/composite-selection.coffee b/src/atom/composite-selection.coffee index 05ba22dfe..6aa347f15 100644 --- a/src/atom/composite-selection.coffee +++ b/src/atom/composite-selection.coffee @@ -59,11 +59,11 @@ class CompositeSeleciton getText: -> @getLastSelection().getText() - moveSelectionsForward: (fn) -> + expandSelectionsForward: (fn) -> fn(selection) for selection in @getSelections() @mergeIntersectingSelections() - moveSelectionsBackward: (fn) -> + expandSelectionsBackward: (fn) -> fn(selection) for selection in @getSelections() @mergeIntersectingSelections(reverse: true) @@ -86,34 +86,34 @@ class CompositeSeleciton @getLastSelection().selectToScreenPosition(position) selectRight: -> - @moveSelectionsForward (selection) => selection.selectRight() + @expandSelectionsForward (selection) => selection.selectRight() selectLeft: -> - @moveSelectionsBackward (selection) => selection.selectLeft() + @expandSelectionsBackward (selection) => selection.selectLeft() selectUp: -> - @moveSelectionsBackward (selection) => selection.selectUp() + @expandSelectionsBackward (selection) => selection.selectUp() selectDown: -> - @moveSelectionsForward (selection) => selection.selectDown() + @expandSelectionsForward (selection) => selection.selectDown() selectToTop: -> - @moveSelectionsBackward (selection) => selection.selectToTop() + @expandSelectionsBackward (selection) => selection.selectToTop() selectToBottom: -> - @moveSelectionsForward (selection) => selection.selectToBottom() + @expandSelectionsForward (selection) => selection.selectToBottom() selectToBeginningOfLine: -> - @moveSelectionsBackward (selection) => selection.selectToBeginningOfLine() + @expandSelectionsBackward (selection) => selection.selectToBeginningOfLine() selectToEndOfLine: -> - @moveSelectionsForward (selection) => selection.selectToEndOfLine() + @expandSelectionsForward (selection) => selection.selectToEndOfLine() selectToBeginningOfWord: -> - @moveSelectionsBackward (selection) => selection.selectToBeginningOfWord() + @expandSelectionsBackward (selection) => selection.selectToBeginningOfWord() selectToEndOfWord: -> - @moveSelectionsForward (selection) => selection.selectToEndOfWord() + @expandSelectionsForward (selection) => selection.selectToEndOfWord() cut: -> maintainPasteboard = false