mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
l can't move the cursor past the last character.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Editor = require 'editor'
|
||||
VimMode = require 'vim-mode'
|
||||
|
||||
describe "VimMode", ->
|
||||
fdescribe "VimMode", ->
|
||||
editor = null
|
||||
|
||||
beforeEach ->
|
||||
@@ -149,11 +149,11 @@ describe "VimMode", ->
|
||||
|
||||
describe "the l keybinding", ->
|
||||
it "moves the cursor right, but not to the next line", ->
|
||||
editor.setCursorPosition([1,4])
|
||||
editor.setCursorPosition([1,3])
|
||||
editor.trigger keydownEvent('l')
|
||||
expect(editor.getCursorPosition()).toEqual([1,5])
|
||||
expect(editor.getCursorPosition()).toEqual([1,4])
|
||||
editor.trigger keydownEvent('l')
|
||||
expect(editor.getCursorPosition()).toEqual([1,5])
|
||||
expect(editor.getCursorPosition()).toEqual([1,4])
|
||||
|
||||
describe "the w keybinding", ->
|
||||
it "moves the cursor to the beginning of the next word", ->
|
||||
|
||||
Reference in New Issue
Block a user