Fixed find scope

There was an off-by-one error for the normal find scope.
Improved look by ignoring the left side.
This commit is contained in:
mae
2010-09-28 16:50:02 +02:00
parent 1bed93e0ea
commit 5c6cfdf848
2 changed files with 6 additions and 6 deletions

View File

@@ -171,10 +171,10 @@ QPainterPath TextEditorOverlay::createSelectionPath(const QTextCursor &begin, co
inSelection = true;
firstOrLastBlock = true;
} else {
while (beginChar < block.length() && document->characterAt(block.position() + beginChar).isSpace())
++beginChar;
if (beginChar == block.length())
beginChar = 0;
// while (beginChar < block.length() && document->characterAt(block.position() + beginChar).isSpace())
// ++beginChar;
// if (beginChar == block.length())
// beginChar = 0;
}
int lastLine = blockLayout->lineCount()-1;