diff --git a/spec/app/edit-session-spec.coffee b/spec/app/edit-session-spec.coffee index 36ad90389..2ce626cfb 100644 --- a/spec/app/edit-session-spec.coffee +++ b/spec/app/edit-session-spec.coffee @@ -1946,7 +1946,7 @@ describe "EditSession", -> editSession.indent() expect(editSession.lineForBufferRow(2)).toBe " " - describe "editor.autoIndentPastedText", -> + describe "editor.autoIndentOnPaste", -> it "does not auto-indent pasted text by default", -> editSession.setCursorBufferPosition([2, 0]) editSession.insertText("0\n 2\n 4\n") @@ -1958,8 +1958,8 @@ describe "EditSession", -> expect(editSession.lineForBufferRow(3)).toBe " 2" expect(editSession.lineForBufferRow(4)).toBe " 4" - it "auto-indents pasted text when editor.autoIndentPastedText is true", -> - config.set("editor.autoIndentPastedText", true) + it "auto-indents pasted text when editor.autoIndentOnPaste is true", -> + config.set("editor.autoIndentOnPaste", true) editSession.setCursorBufferPosition([2, 0]) editSession.insertText("0\n 2\n 4\n") editSession.getSelection().setBufferRange([[2,0], [5,0]]) diff --git a/src/app/edit-session.coffee b/src/app/edit-session.coffee index 9b08be236..1a20813cc 100644 --- a/src/app/edit-session.coffee +++ b/src/app/edit-session.coffee @@ -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: ->