Delete bad merge artifacts and reword docs

This commit is contained in:
Lee Dohm 2015-04-29 18:27:09 -07:00
parent be2e340412
commit 70a8b54e50

View File

@ -404,24 +404,16 @@ class Selection extends Model
@selectLeft() if @isEmpty() and not @editor.isFoldedAtScreenRow(@cursor.getScreenRow()) @selectLeft() if @isEmpty() and not @editor.isFoldedAtScreenRow(@cursor.getScreenRow())
@deleteSelectedText() @deleteSelectedText()
# Deprecated: Use {::deleteToBeginningOfWord} instead. # Public: Removes the selection or, if nothing is selected, then all
backspaceToBeginningOfWord: -> # characters from the start of the selection back to the previous word
deprecate("Use Selection::deleteToBeginningOfWord() instead") # boundary.
@deleteToBeginningOfWord()
# Deprecated: Use {::deleteToBeginningOfLine} instead.
backspaceToBeginningOfLine: ->
deprecate("Use Selection::deleteToBeginningOfLine() instead")
@deleteToBeginningOfLine()
# Public: Removes the selection or all characters from the start of the
# selection back to the previous word boundary if nothing is selected.
deleteToPreviousWordBoundary: -> deleteToPreviousWordBoundary: ->
@selectToPreviousWordBoundary() if @isEmpty() @selectToPreviousWordBoundary() if @isEmpty()
@deleteSelectedText() @deleteSelectedText()
# Public: Removes the selection or all characters from the start of the # Public: Removes the selection or, if nothing is selected, then all
# selection up to the next word boundary if nothing is selected. # characters from the start of the selection up to the next word
# boundary.
deleteToNextWordBoundary: -> deleteToNextWordBoundary: ->
@selectToNextWordBoundary() if @isEmpty() @selectToNextWordBoundary() if @isEmpty()
@deleteSelectedText() @deleteSelectedText()