Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.

Commit a54a484

Browse files
committed
add another test
1 parent c1818cf commit a54a484

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/operators-spec.coffee

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,3 +1439,15 @@ describe "Operators", ->
14391439
keydown '.'
14401440
expect(editor.getText()).toBe "abcabc"
14411441
expect(editor.getCursorScreenPosition()).toEqual [0, 5]
1442+
1443+
it "stores for repeating only the last batch of characters, repeats as insert", ->
1444+
keydown 'a'
1445+
editor.insertText("abc")
1446+
atom.commands.dispatch editorElement, 'vim-mode:move-left-insert'
1447+
editor.insertText("de")
1448+
keydown 'escape'
1449+
expect(editor.getText()).toBe "abdec"
1450+
expect(editor.getCursorScreenPosition()).toEqual [0, 3]
1451+
keydown '.'
1452+
expect(editor.getText()).toBe "abddeec"
1453+
expect(editor.getCursorScreenPosition()).toEqual [0, 4]

0 commit comments

Comments
 (0)