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

Commit c1818cf

Browse files
committed
add test
1 parent 6a6b023 commit c1818cf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spec/operators-spec.coffee

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,17 @@ describe "Operators", ->
14061406
keydown '.'
14071407
expect(editor.getText()).toBe "abababccc123\nabababccc4567"
14081408

1409+
it "stores for repeating only the last batch of characters", ->
1410+
keydown 'i'
1411+
editor.insertText("abc")
1412+
atom.commands.dispatch editorElement, 'vim-mode:move-left-insert'
1413+
editor.insertText("de")
1414+
keydown 'escape'
1415+
expect(editor.getText()).toBe "abdec123\nabdec4567"
1416+
1417+
keydown '.'
1418+
expect(editor.getText()).toBe "abddeec123\nabddeec4567"
1419+
14091420
describe 'the a keybinding', ->
14101421
beforeEach ->
14111422
editor.setText('')

0 commit comments

Comments
 (0)