From 66530eb69a83788bfb16ba679846ddea88f8e152 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 3 Feb 2014 13:28:09 -0800 Subject: [PATCH] Rename remaining pasteboard occurences --- spec/editor-spec.coffee | 2 +- src/selection.coffee | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/spec/editor-spec.coffee b/spec/editor-spec.coffee index 8d5e05d9a..31649ab44 100644 --- a/spec/editor-spec.coffee +++ b/spec/editor-spec.coffee @@ -1860,7 +1860,7 @@ describe "Editor", -> beforeEach -> editor.setSelectedBufferRanges([[[0, 4], [0, 13]], [[1, 6], [1, 10]]]) - describe ".cutSelectedText()", -> + fdescribe ".cutSelectedText()", -> it "removes the selected text from the buffer and places it on the clipboard", -> editor.cutSelectedText() expect(buffer.lineForRow(0)).toBe "var = function () {" diff --git a/src/selection.coffee b/src/selection.coffee index 7847e33f9..7df6730b4 100644 --- a/src/selection.coffee +++ b/src/selection.coffee @@ -506,28 +506,28 @@ class Selection # Public: Cuts the selection until the end of the line. # - # * maintainPasteboard: + # * maintainClipboard: # ? - cutToEndOfLine: (maintainPasteboard) -> + cutToEndOfLine: (maintainClipboard) -> @selectToEndOfLine() if @isEmpty() - @cut(maintainPasteboard) + @cut(maintainClipboard) - # Public: Copies the selection to the pasteboard and then deletes it. + # Public: Copies the selection to the clipboard and then deletes it. # - # * maintainPasteboard: + # * maintainClipboard: # ? - cut: (maintainPasteboard=false) -> - @copy(maintainPasteboard) + cut: (maintainClipboard=false) -> + @copy(maintainClipboard) @delete() - # Public: Copies the current selection to the pasteboard. + # Public: Copies the current selection to the clipboard. # - # * maintainPasteboard: + # * maintainClipboard: # ? - copy: (maintainPasteboard=false) -> + copy: (maintainClipboard=false) -> return if @isEmpty() text = @editor.buffer.getTextInRange(@getBufferRange()) - if maintainPasteboard + if maintainClipboard text = atom.clipboard.read().text + '\n' + text else metadata = { indentBasis: @editor.indentationForBufferRow(@getBufferRange().start.row) }