mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Inserting whitespace never auto-outdents
Closes #340 Shout out to @nathansobo
This commit is contained in:
@@ -164,7 +164,7 @@ class Selection
|
||||
if options.autoIndent
|
||||
if text == '\n'
|
||||
@editSession.autoIndentBufferRow(newBufferRange.end.row)
|
||||
else
|
||||
else if /\S/.test(text)
|
||||
@editSession.autoDecreaseIndentForRow(newBufferRange.start.row)
|
||||
|
||||
newBufferRange
|
||||
|
||||
Reference in New Issue
Block a user