mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use buildIndentString method instead of hard-coding spaces
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user