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