Inserting whitespace never auto-outdents

Closes #340

Shout out to @nathansobo
This commit is contained in:
Corey Johnson & Kevin Sawicki
2013-03-05 10:19:24 -08:00
parent 37e4091723
commit 94099358f3
2 changed files with 16 additions and 7 deletions

View File

@@ -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