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

Commit b3d0635

Browse files
committed
fix specs for merge of #767 with #782
1 parent 4c833a7 commit b3d0635

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

spec/vim-state-spec.coffee

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,28 +359,30 @@ describe "VimState", ->
359359
])
360360

361361
it "harmonizes selection directions", ->
362-
keydown("i")
363-
keydown("w")
362+
editor.setCursorBufferPosition([0, 0])
363+
keydown("e")
364+
keydown("e")
364365
editor.addCursorAtBufferPosition([0, Infinity])
365366
keydown("h")
367+
keydown("h")
366368

367369
expect(editor.getSelectedBufferRanges()).toEqual([
368-
[[0, 4], [0, 6]],
369-
[[0, 12], [0, 13]]
370+
[[0, 0], [0, 5]],
371+
[[0, 11], [0, 13]]
370372
])
371373
expect(editor.getCursorBufferPositions()).toEqual([
372-
[0, 6]
373-
[0, 12]
374+
[0, 5]
375+
[0, 11]
374376
])
375377

376378
keydown("o")
377379

378380
expect(editor.getSelectedBufferRanges()).toEqual([
379-
[[0, 4], [0, 6]],
380-
[[0, 12], [0, 13]]
381+
[[0, 0], [0, 5]],
382+
[[0, 11], [0, 13]]
381383
])
382384
expect(editor.getCursorBufferPositions()).toEqual([
383-
[0, 6]
385+
[0, 5]
384386
[0, 13]
385387
])
386388

0 commit comments

Comments
 (0)