mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
📝 Remove FIXME in Editor::transpose
This commit is contained in:
@@ -1251,11 +1251,9 @@ class Editor
|
||||
|
||||
# Public: Transposes the current text selections.
|
||||
#
|
||||
# FIXME: I have no idea what this function does.
|
||||
#
|
||||
# This only works if there is more than one selection. Each selection is transferred
|
||||
# to the position of the selection after it. The last selection is transferred to the
|
||||
# position of the first.
|
||||
# The text in each selection is reversed so `abcd` would become `dcba`. The
|
||||
# characters before and after the cursor are swapped when the selection is
|
||||
# empty so `x|y` would become `y|x` where `|` is the cursor location.
|
||||
transpose: ->
|
||||
@mutateSelectedText (selection) =>
|
||||
if selection.isEmpty()
|
||||
|
||||
Reference in New Issue
Block a user