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

Commit 93445fc

Browse files
committed
add another test
1 parent efc4177 commit 93445fc

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
@@ -1608,6 +1608,18 @@ describe "Operators", ->
16081608
expect(editor.getText()).toBe "abcabc"
16091609
expect(editor.getCursorScreenPosition()).toEqual [0, 5]
16101610

1611+
it "stores for repeating only the last batch of characters, repeats as insert", ->
1612+
keydown 'a'
1613+
editor.insertText("abc")
1614+
atom.commands.dispatch editorElement, 'vim-mode:move-left-insert'
1615+
editor.insertText("de")
1616+
keydown 'escape'
1617+
expect(editor.getText()).toBe "abdec"
1618+
expect(editor.getCursorScreenPosition()).toEqual [0, 3]
1619+
keydown '.'
1620+
expect(editor.getText()).toBe "abddeec"
1621+
expect(editor.getCursorScreenPosition()).toEqual [0, 4]
1622+
16111623
describe "the ctrl-a/ctrl-x keybindings", ->
16121624
beforeEach ->
16131625
atom.config.set 'vim-mode.numberRegex', settings.config.numberRegex.default

0 commit comments

Comments
 (0)