mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Merge pull request #9104 from joseramonc/master
autoindent lines with moveLineUp/moveLineDown
This commit is contained in:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user