Commit 703a93d7 authored by hjk's avatar hjk

FakeVim: Fix cw on white space

Task-number: QTCREATORBUG-11757
Change-Id: I99ac0f78c02e0bb6684fc714d2cba2c35a3b7db3
Reviewed-by: default avatarLukas Holecek <hluk@email.cz>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 150803bc
......@@ -3902,7 +3902,7 @@ bool FakeVimHandler::Private::handleMovement(const Input &input)
// cursor is on a non-blank - except if the cursor is on the last
// character of a word: only the current word will be changed
bool simple = input.is('W');
if (g.submode == ChangeSubMode) {
if (g.submode == ChangeSubMode && !document()->characterAt(position()).isSpace()) {
moveToWordEnd(count, simple, true);
g.movetype = MoveInclusive;
} else {
......
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