mirror of
https://github.com/atom/atom.git
synced 2026-02-09 22:24:59 -05:00
meta-] indents selected lines
This commit is contained in:
@@ -105,6 +105,11 @@ class Selection extends View
|
||||
@autoOutdentText() if shouldOutdent
|
||||
@clearSelection()
|
||||
|
||||
indentSelectedRows: ->
|
||||
range = @getBufferRange()
|
||||
for row in [range.start.row..range.end.row]
|
||||
@editor.buffer.insert([row, 0], @editor.tabText) unless @editor.buffer.lineLengthForRow(row) == 0
|
||||
|
||||
autoIndentText: (text) ->
|
||||
if @editor.autoIndent
|
||||
mode = @editor.getCurrentMode()
|
||||
|
||||
Reference in New Issue
Block a user