Commit 611be1ae authored by Lukas Holecek's avatar Lukas Holecek Committed by hjk
Browse files

fakevim: Command 's' has exclusive motion



Change-Id: I3d4642ebf69055722568cf0e59f5480ad5b2c418
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent e2370578
...@@ -811,6 +811,18 @@ void FakeVimPlugin::test_vim_change_replace() ...@@ -811,6 +811,18 @@ void FakeVimPlugin::test_vim_change_replace()
data.setText(" abc" N " def" N " gh" X "i" N " jkl"); data.setText(" abc" N " def" N " gh" X "i" N " jkl");
KEYS("ck123<ESC>", " abc" N " 12" X "3" N " jkl"); KEYS("ck123<ESC>", " abc" N " 12" X "3" N " jkl");
INTEGRITY(false); 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() void FakeVimPlugin::test_vim_block_selection()
......
...@@ -3534,6 +3534,7 @@ bool FakeVimHandler::Private::handleNoSubMode(const Input &input) ...@@ -3534,6 +3534,7 @@ bool FakeVimHandler::Private::handleNoSubMode(const Input &input)
moveRight(qMin(count(), rightDist())); moveRight(qMin(count(), rightDist()));
setDotCommand("%1s", count()); setDotCommand("%1s", count());
m_submode = ChangeSubMode; m_submode = ChangeSubMode;
m_movetype = MoveExclusive;
finishMovement(); finishMovement();
} else if (input.is('S')) { } else if (input.is('S')) {
m_movetype = MoveLineWise; m_movetype = MoveLineWise;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment