fakevim: Command 's' has exclusive motion

Change-Id: I3d4642ebf69055722568cf0e59f5480ad5b2c418
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Lukas Holecek
2012-11-23 19:41:59 +01:00
committed by hjk
parent e237057827
commit 611be1ae19
2 changed files with 13 additions and 0 deletions

View File

@@ -811,6 +811,18 @@ void FakeVimPlugin::test_vim_change_replace()
data.setText(" abc" N " def" N " gh" X "i" N " jkl");
KEYS("ck123<ESC>", " abc" N " 12" X "3" N " jkl");
INTEGRITY(false);
data.setText("abc" N X "def");
KEYS("sXYZ", "abc" N "XYZ" X "ef");
INTEGRITY(false);
data.setText("abc" N X "def");
KEYS("2sXYZ<ESC>", "abc" N "XY" X "Zf");
INTEGRITY(false);
data.setText("abc" N X "def");
KEYS("6sXYZ<ESC>", "abc" N "XY" X "Z");
INTEGRITY(false);
}
void FakeVimPlugin::test_vim_block_selection()

View File

@@ -3534,6 +3534,7 @@ bool FakeVimHandler::Private::handleNoSubMode(const Input &input)
moveRight(qMin(count(), rightDist()));
setDotCommand("%1s", count());
m_submode = ChangeSubMode;
m_movetype = MoveExclusive;
finishMovement();
} else if (input.is('S')) {
m_movetype = MoveLineWise;