mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Allow additional indentation after line has been auto-indented
This commit is contained in:
@@ -134,8 +134,11 @@ class EditSession
|
||||
whitespaceMatch = @lineForBufferRow(@getCursorBufferPosition().row).match /^\s*$/
|
||||
if @autoIndent and whitespaceMatch
|
||||
indentation = @indentationForRow(@getCursorBufferPosition().row)
|
||||
@getSelection().selectLine()
|
||||
@insertText(indentation)
|
||||
if indentation.length > whitespaceMatch[0].length
|
||||
@getSelection().selectLine()
|
||||
@insertText(indentation)
|
||||
else
|
||||
@insertText(@tabText)
|
||||
else if @softTabs
|
||||
@insertText(@tabText)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user