fakevim: Correct cursor position after yank

Change-Id: I845eeebe44ed859cc96d69fbd660fce56cc1418b
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Lukas Holecek
2012-11-23 19:35:26 +01:00
committed by hjk
parent 611be1ae19
commit 477285b93c
2 changed files with 17 additions and 3 deletions

View File

@@ -1205,6 +1205,12 @@ void FakeVimPlugin::test_vim_copy_paste()
data.setText("abc");
KEYS("yyp", "abc" N X "abc");
KEYS("4p", "abc" N "abc" N X "abc" N "abc" N "abc" N "abc");
// cursor position after yank
data.setText("ab" X "c" N "def");
KEYS("Vjy", X "abc" N "def");
data.setText("ab" X "c" N "def");
KEYS("<c-v>jhhy", X "abc" N "def");
}
void FakeVimPlugin::test_vim_undo_redo()