Respect the editor.autoIndent option when pasting

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2014-11-17 08:52:51 -08:00
committed by Nathan Sobo
parent e849fc45ff
commit c8ad232c31
2 changed files with 8 additions and 0 deletions

View File

@@ -2507,6 +2507,7 @@ class TextEditor extends Model
if containsNewlines or !@getLastCursor().hasPrecedingCharactersOnLine()
options.indentBasis ?= metadata.indentBasis
options.autoIndent = @shouldAutoIndent()
@insertText(text, options)
# Public: For each selection, if the selection is empty, cut all characters