Use buildIndentString method instead of hard-coding spaces

This commit is contained in:
Justin Ratner
2017-12-04 10:28:22 -07:00
parent 129f5a34cb
commit d4dd08da22

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)) {