autoindent lines in moveLineUp/moveLineDown

#7546
This commit is contained in:
joseramonc
2015-10-10 13:15:05 -05:00
parent 69d9da1fa5
commit 84e723a723

View File

@@ -842,6 +842,7 @@ class TextEditor extends Model
@foldBufferRow(foldedRow)
@setSelectedBufferRange(selection.translate([-insertDelta]), preserveFolds: true, autoscroll: true)
@autoIndentSelectedRows() if @shouldAutoIndent()
# Move lines intersecting the most recent selection down by one row in screen
# coordinates.
@@ -898,6 +899,7 @@ class TextEditor extends Model
@foldBufferRow(foldedRow)
@setSelectedBufferRange(selection.translate([insertDelta]), preserveFolds: true, autoscroll: true)
@autoIndentSelectedRows() if @shouldAutoIndent()
# Duplicate the most recent cursor's current line.
duplicateLines: ->