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. #