Copy to text to clipboard on delete

This commit is contained in:
Ryan Mitchell 2016-04-23 21:33:04 -04:00
parent 145446b8de
commit f8396fb4e4
2 changed files with 11 additions and 1 deletions

View file

@ -530,6 +530,11 @@ describe "the commands", ->
submitNormalModeInputText('delete')
expect(editor.getText()).toEqual('abc\ndef\njkl')
it "copies the deleted text", ->
keydown(':')
submitNormalModeInputText('delete')
expect(atom.clipboard.read()).toEqual('ghi\n')
it "deletes the lines in the given range", ->
processedOpStack = false
exState.onDidProcessOpStack -> processedOpStack = true