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

      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 barfoo bar\nbaz\n"

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