Commit 414c5ba9 authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

fakevim: 'cw' invoked on a sequence of space should just change the spaces



Merge-request: 126
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 6d5c1210
......@@ -2820,7 +2820,7 @@ void FakeVimHandler::Private::moveToWordBoundary(bool simple, bool forward, bool
QChar c = doc->characterAt(m_tc.position() + (forward ? 1 : -1));
//qDebug() << "EXAMINING: " << c << " AT " << position();
int thisClass = charClass(c, simple);
if (thisClass != lastClass && lastClass != 0)
if (thisClass != lastClass && (lastClass != 0 || changeWord))
--repeat;
if (repeat == -1)
break;
......
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