From 81532d52f711bfa30fa4fe3fb4c8adc7136d867f Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Tue, 2 Sep 2014 16:45:49 -0700 Subject: [PATCH] Move select all fn so docs read better --- src/editor.coffee | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/editor.coffee b/src/editor.coffee index 06503efb2..0ac028065 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -1985,12 +1985,6 @@ class Editor extends Model selectToTop: -> @expandSelectionsBackward (selection) -> selection.selectToTop() - # Essential: Select all text in the buffer. - # - # This method merges multiple selections into a single selection. - selectAll: -> - @expandSelectionsForward (selection) -> selection.selectAll() - # Essential: Selects from the top of the first selection in the buffer to the end # of the buffer. # @@ -1998,6 +1992,12 @@ class Editor extends Model selectToBottom: -> @expandSelectionsForward (selection) -> selection.selectToBottom() + # Essential: Select all text in the buffer. + # + # This method merges multiple selections into a single selection. + selectAll: -> + @expandSelectionsForward (selection) -> selection.selectAll() + # Essential: Move the cursor of each selection to the beginning of its line # while preserving the selection's tail position. #