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

Commit 6744e61

Browse files
committed
implement command->normal renaming
1 parent 3bf1a3f commit 6744e61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/operators-spec.coffee

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ describe "Operators", ->
699699

700700
it "undoes correctly with u", ->
701701
keydown('escape')
702-
expect(vimState.mode).toBe "command"
702+
expect(vimState.mode).toBe "normal"
703703
keydown 'u'
704704
expect(editor.getText()).toBe("12345(67)8\nabc(d)e\nA()BCDE")
705705

@@ -737,32 +737,32 @@ describe "Operators", ->
737737
editor.setCursorScreenPosition([1, 0])
738738
keydown('.')
739739
expect(editor.getText()).toBe("1x8\nxe\nA()BCDE")
740-
expect(vimState.mode).toBe "command"
740+
expect(vimState.mode).toBe "normal"
741741

742742
it "repeats correctly on the opening bracket", ->
743743
editor.setCursorScreenPosition([1, 3])
744744
keydown('.')
745745
expect(editor.getText()).toBe("1x8\nabcxe\nA()BCDE")
746-
expect(vimState.mode).toBe "command"
746+
expect(vimState.mode).toBe "normal"
747747

748748
it "repeats correctly inside brackets", ->
749749
editor.setCursorScreenPosition([1, 4])
750750
keydown('.')
751751
expect(editor.getText()).toBe("1x8\nabcx)e\nA()BCDE")
752-
expect(vimState.mode).toBe "command"
752+
expect(vimState.mode).toBe "normal"
753753

754754
it "repeats correctly on the closing bracket", ->
755755
editor.setCursorScreenPosition([1, 5])
756756
keydown('.')
757757
expect(editor.getText()).toBe("1x8\nabcxe\nA()BCDE")
758-
expect(vimState.mode).toBe "command"
758+
expect(vimState.mode).toBe "normal"
759759

760760
it "does nothing when repeated after a bracket", ->
761761
editor.setCursorScreenPosition([2, 3])
762762
keydown('.')
763763
# differs from VIM, fixed in #774
764764
expect(editor.getText()).toBe("1x8\nabc(d)e\nA()xBCDE")
765-
expect(vimState.mode).toBe "command"
765+
expect(vimState.mode).toBe "normal"
766766

767767
describe "when followed by a goto line G", ->
768768
beforeEach ->

0 commit comments

Comments
 (0)