From d4dd08da2244102121a275d97df556ff9cba85ed Mon Sep 17 00:00:00 2001 From: Justin Ratner Date: Mon, 4 Dec 2017 10:28:22 -0700 Subject: [PATCH] Use buildIndentString method instead of hard-coding spaces --- src/text-editor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)) {