diff --git a/src/text-editor.js b/src/text-editor.js index bcd9c19d3..851718946 100644 --- a/src/text-editor.js +++ b/src/text-editor.js @@ -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)) {