forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user