mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
Rename editor.autoIndentPastedText to editor.autoIndentOnPaste
This commit is contained in:
@@ -161,7 +161,7 @@ class EditSession
|
||||
config.get("editor.autoIndent") ? true
|
||||
|
||||
shouldAutoIndentPastedText: ->
|
||||
config.get("editor.autoIndentPastedText") ? false
|
||||
config.get("editor.autoIndentOnPaste") ? false
|
||||
|
||||
insertText: (text, options={}) ->
|
||||
options.autoIndent ?= @shouldAutoIndent()
|
||||
@@ -230,7 +230,6 @@ class EditSession
|
||||
[text, metadata] = pasteboard.read()
|
||||
_.extend(options, metadata) if metadata
|
||||
|
||||
console.log options
|
||||
@insertText(text, options)
|
||||
|
||||
undo: ->
|
||||
|
||||
Reference in New Issue
Block a user