From 84e723a72349c7539cf7175282081809ecbaebbb Mon Sep 17 00:00:00 2001 From: joseramonc Date: Sat, 10 Oct 2015 13:15:05 -0500 Subject: [PATCH] autoindent lines in moveLineUp/moveLineDown #7546 --- src/text-editor.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/text-editor.coffee b/src/text-editor.coffee index 4d517ac99..03c3fc7aa 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -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: ->