Scope editor.normalizeIndentOnPaste

This commit is contained in:
Ben Ogle
2014-10-06 18:10:24 -07:00
parent 237c668ef0
commit 6958e0af10
2 changed files with 38 additions and 6 deletions

View File

@@ -2448,7 +2448,7 @@ class TextEditor extends Model
return
else if atom.config.get("editor.normalizeIndentOnPaste") and metadata?.indentBasis?
else if atom.config.get(@scopesAtCursor(), "editor.normalizeIndentOnPaste") and metadata?.indentBasis?
if !@getLastCursor().hasPrecedingCharactersOnLine() or containsNewlines
options.indentBasis ?= metadata.indentBasis