forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user