fakevim: don't let 'F'/'T' at the start of a document go into an endless loop

Merge-request: 99
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-01-21 17:38:31 +01:00
committed by hjk
parent 5e30757db6
commit 6599089c7b

View File

@@ -2751,7 +2751,7 @@ void FakeVimHandler::Private::handleFfTt(int key)
if (forward)
n += block.length();
int pos = m_tc.position();
while (true) {
while (pos != n) {
pos += forward ? 1 : -1;
if (pos == n)
break;