Update option to preserveLeadingWhitespace

This commit is contained in:
Kevin Sawicki
2014-03-19 10:05:29 -07:00
parent 7c17c99b9e
commit 9fce23d5ac
2 changed files with 5 additions and 5 deletions

View File

@@ -301,7 +301,7 @@ class Selection
if options.autoIndent
@editor.autoIndentBufferRow(row) for row in newBufferRange.getRows()
else if options.autoIndentNewline and text == '\n'
@editor.autoIndentBufferRow(newBufferRange.end.row, ignoreLeadingWhitespace: true)
@editor.autoIndentBufferRow(newBufferRange.end.row, preserveLeadingWhitespace: true)
else if options.autoDecreaseIndent and /\S/.test text
@editor.autoDecreaseIndentForBufferRow(newBufferRange.start.row)