       expect(editor.getText()).toBe "foo bar\nfoo bar\nbaz\n"
 
     it "kill, move, kill and yank", ->
-      editor.setCursorBufferPosition [0,0]
+      editor.setCursorBufferPosition [0, 0]
       transient_emacs.kill()
-      editor.setCursorBufferPosition [1,0]
-      editor.setCursorBufferPosition [0,0]
+      editor.setCursorBufferPosition [1, 0]
+      editor.setCursorBufferPosition [0, 0]
       transient_emacs.kill()
       expect(editor.getText()).toBe "baz\n"
       transient_emacs.yank()

      expect(editor.getText()).toBe "foo foo \nbaz\n"

    it "kill-region and yank", ->
      editor.setSelectedBufferRange [[0,0],[0,3]]
      transient_emacs.killRegion()
      expect(editor.getText()).toBe " bar\nbaz\n"
      transient_emacs.yank()
      expect(editor.getText()).toBe "foo bar\nbaz\n"

    it "kill multi regions and yank", ->
      editor.setSelectedBufferRanges [[[0,0],[0,3]],[[1,0],[1,3]]]
      transient_emacs.killRegion()
      expect(editor.getText()).toBe " bar\n\n"
      transient_emacs.yank()
      expect(editor.getText()).toBe "foo bar\nbaz\n"

    it "kill-region and yank with extra cursor", ->
      editor.setSelectedBufferRange [[0,0],[0,3]]
      editor.addCursorAtBufferPosition [1,0]
      transient_emacs.killRegion()
      expect(editor.getText()).toBe " bar\nbaz\n"
      transient_emacs.yank()
      expect(editor.getText()).toBe "foo bar\nbaz\n"

    it "copy-region and yank", ->
      editor.setSelectedBufferRanges [[[0,0],[0,3]],[[1,0],[1,3]]]
      transient_emacs.copyRegion()
      expect(editor.getText()).toBe "foo bar\nbaz\n"
      transient_emacs.yank()
      expect(editor.getText()).toBe "foofoo bar\nbazbaz\n"

    it "copy-region, kill and yank", ->
      editor.setSelectedBufferRange [[0,0],[0,3]]
      transient_emacs.copyRegion()
      transient_emacs.kill()
      expect(editor.getText()).toBe "foo\nbaz\n"

      expect(editor.getText()).toBe "foo barbar\nbaz\n"

    it "kill-backword-word twice and yank twice", ->
      editor.setCursorBufferPosition [0, 7]
      transient_emacs.killBackwardWord()
      transient_emacs.killBackwardWord()
      expect(editor.getText()).toBe "\nbaz\n"
