forked from qt-creator/qt-creator
fakevim: Escape insert command and correct undo position for "I"
Escape inserted string for repeatition, e.g. command "2i<up>" will insert text "<up><up>". Undo position for "I" is start of selection or line. Change-Id: Ic7e6d8dbf712197b36be20b17ef6d1c0814b1a51 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -548,6 +548,16 @@ void FakeVimPlugin::test_vim_insert()
|
||||
data.setText("abc" N "de" X "f" N "" N "jkl" N "mno");
|
||||
KEYS("<c-v>2jh" "2I" "XYZ<esc>", "abc" N "d" X "XYZXYZef" N "" N "jXYZXYZkl" N "mno");
|
||||
INTEGRITY(false);
|
||||
|
||||
// repeat insert with special characters
|
||||
data.setText("ab" X "c" N "def");
|
||||
KEYS("2i<lt>down><esc>", "ab<down><down" X ">c" N "def");
|
||||
INTEGRITY(false);
|
||||
|
||||
data.setText(" ab" X "c" N " def");
|
||||
KEYS("2I<lt>end><esc>", " <end><end" X ">abc" N " def");
|
||||
KEYS("u", " " X "abc" N " def");
|
||||
KEYS(".", " <end><end" X ">abc" N " def");
|
||||
}
|
||||
|
||||
void FakeVimPlugin::test_vim_fFtT()
|
||||
|
||||
Reference in New Issue
Block a user