mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
use the local selection instance
This commit is contained in:
@@ -508,13 +508,13 @@ class EditSession
|
||||
transpose: ->
|
||||
@mutateSelectedText (selection) =>
|
||||
if selection.isEmpty()
|
||||
@selectRight()
|
||||
selection.selectRight()
|
||||
text = selection.getText()
|
||||
selection.delete()
|
||||
@moveCursorLeft()
|
||||
@insertText text
|
||||
selection.cursor.moveLeft()
|
||||
selection.insertText text
|
||||
else
|
||||
@insertText selection.getText().split('').reverse().join('')
|
||||
selection.insertText selection.getText().split('').reverse().join('')
|
||||
|
||||
expandLastSelectionOverLine: ->
|
||||
@getLastSelection().expandOverLine()
|
||||
|
||||
Reference in New Issue
Block a user