Merge pull request #9104 from joseramonc/master

autoindent lines with moveLineUp/moveLineDown
This commit is contained in:
Max Brunsfeld
2015-11-03 10:41:29 -08:00
2 changed files with 33 additions and 0 deletions

View File

@@ -918,6 +918,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.
@@ -974,6 +975,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: ->