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

Merge-request: 126
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-03-08 11:44:43 +01:00
committed by hjk
parent 6d5c121063
commit 414c5ba979

View File

@@ -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;