fix off-by-one for 'w'

This commit is contained in:
hjk
2008-12-25 22:42:50 +01:00
committed by Roberto Raggi
parent 4d6b2905c4
commit 1e9214e1dd

View File

@@ -609,7 +609,7 @@ void FakeVimHandler::Private::moveToNextWord(int repeat, bool simple)
int thisClass = charClass(c, simple);
if (thisClass != lastClass && thisClass != 0)
--repeat;
if (repeat == -1)
if (repeat == 0)
break;
lastClass = thisClass;
m_tc.movePosition(Right, KeepAnchor, 1);