File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments