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

Commit efc4177

Browse files
committed
add test
1 parent c23873b commit efc4177

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
@@ -1574,6 +1574,17 @@ describe "Operators", ->
15741574
keydown '.'
15751575
expect(editor.getText()).toBe "abababccc123\nabababccc4567"
15761576

1577+
it "stores for repeating only the last batch of characters", ->
1578+
keydown 'i'
1579+
editor.insertText("abc")
1580+
atom.commands.dispatch editorElement, 'vim-mode:move-left-insert'
1581+
editor.insertText("de")
1582+
keydown 'escape'
1583+
expect(editor.getText()).toBe "abdec123\nabdec4567"
1584+
1585+
keydown '.'
1586+
expect(editor.getText()).toBe "abddeec123\nabddeec4567"
1587+
15771588
describe 'the a keybinding', ->
15781589
beforeEach ->
15791590
editor.setText('')

0 commit comments

Comments
 (0)