mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Respect the editor.autoIndent option when pasting
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Nathan Sobo
parent
e849fc45ff
commit
c8ad232c31
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user