fakevim: Fix crash when setting cursor position in edit block

Workaround for crash when setting text cursor position while in edit
block (after QTextCursor::beginEditBlock() call and before
QTextCursor::endEditBlock() call).

Task-number: QTCREATORBUG-8148
Change-Id: I7faab2e878efea4106e375b32526ecd5984feac2
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Lukas Holecek
2012-11-01 21:25:43 +01:00
committed by hjk
parent e64543aa61
commit 67bf8aa863
2 changed files with 38 additions and 8 deletions

View File

@@ -1112,6 +1112,11 @@ void FakeVimPlugin::test_vim_copy_paste()
data.setText("123" N "456" N "789");
KEYS("wyiw" "wviwp", "123" N "456" N "45" X "6");
// QTCREATORBUG-8148
data.setText("abc");
KEYS("yyp", "abc" N X "abc");
KEYS("4p", "abc" N "abc" N X "abc" N "abc" N "abc" N "abc");
}
void FakeVimPlugin::test_vim_undo_redo()