FakeVim: Remember that cursor is at the end of line

Change-Id: I62098a409028593664b813931d5974de5e787993
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Lukas Holecek
2013-01-16 17:49:37 +01:00
committed by hjk
parent 402affa9c2
commit 2622eb2415
2 changed files with 14 additions and 1 deletions

View File

@@ -421,6 +421,13 @@ void FakeVimPlugin::test_vim_movement()
data.setText("abc def" N "ghi");
KEYS("$a", "abc def" X N "ghi");
data.setText("abc" N "def ghi");
KEYS("i<end><down>", "abc" N "def ghi" X);
data.setText("abc" N "def ghi");
KEYS("<end>i<down>", "abc" N "de" X "f ghi");
data.setText("abc" N "def ghi");
KEYS("<end>a<down>", "abc" N "def" X " ghi");
// paragraph movement
data.setText("abc" N N "def");
KEYS("}", "abc" N X N "def");