mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Handle indentation with mixed tabs and spaces
This commit is contained in:
@@ -622,7 +622,7 @@ class Selection extends Model
|
||||
else
|
||||
currentIndentLevel = @editor.indentLevelForLine(lines[i])
|
||||
indentLevel = Math.max(0, currentIndentLevel + indentAdjustment)
|
||||
lines[i] = line.replace(/^(\t+| +)/, @editor.buildIndentString(indentLevel))
|
||||
lines[i] = line.replace(/^[\t ]+/, @editor.buildIndentString(indentLevel))
|
||||
return
|
||||
|
||||
# Indent the current line(s).
|
||||
|
||||
Reference in New Issue
Block a user