Merge pull request #16319 from atom/fix-tabs-converted-to-spaces

Use buildIndentString method instead of hard-coding spaces
This commit is contained in:
leroix
2017-12-04 15:26:12 -07:00
committed by GitHub

View File

@@ -4522,8 +4522,7 @@ class TextEditor {
? minBlankIndentLevel
: 0
const tabLength = this.getTabLength()
const indentString = ' '.repeat(tabLength * minIndentLevel)
const indentString = this.buildIndentString(minIndentLevel)
for (let row = start; row <= end; row++) {
const line = this.buffer.lineForRow(row)
if (NON_WHITESPACE_REGEXP.test(line)) {