mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Switch indent/outdentSelectedRows to activeEditSession
This commit is contained in:
@@ -114,6 +114,12 @@ class EditSession
|
||||
deleteToEndOfWord: ->
|
||||
@mutateSelectedText (selection) -> selection.deleteToEndOfWord()
|
||||
|
||||
indentSelectedRows: ->
|
||||
@mutateSelectedText (selection) -> selection.indentSelectedRows()
|
||||
|
||||
outdentSelectedRows: ->
|
||||
@mutateSelectedText (selection) -> selection.outdentSelectedRows()
|
||||
|
||||
cutToEndOfLine: ->
|
||||
maintainPasteboard = false
|
||||
@mutateSelectedText (selection) ->
|
||||
|
||||
@@ -731,8 +731,8 @@ class Editor extends View
|
||||
else
|
||||
@compositeSelection.indentSelectedRows()
|
||||
|
||||
indentSelectedRows: -> @compositeSelection.indentSelectedRows()
|
||||
outdentSelectedRows: -> @compositeSelection.outdentSelectedRows()
|
||||
indentSelectedRows: -> @activeEditSession.indentSelectedRows()
|
||||
outdentSelectedRows: -> @activeEditSession.outdentSelectedRows()
|
||||
|
||||
cutSelection: -> @activeEditSession.cut()
|
||||
copySelection: -> @activeEditSession.copy()
|
||||
|
||||
Reference in New Issue
Block a user