forked from qt-creator/qt-creator
FileSearch: Fix wrong line number for RegExp search.
Introduced by recent refactoring Change-Id: Ifb7300549ce1791a90d287d5d8dd66f7d2217755 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
committed by
Christian Stenger
parent
789f3d6ca2
commit
f311eff157
@@ -207,6 +207,7 @@ const FileSearchResultList FileSearchRegExp::operator()(const QString &filePath,
|
||||
|
||||
QString line;
|
||||
while (!stream.atEnd()) {
|
||||
++lineNr;
|
||||
line = stream.readLine();
|
||||
const QString resultItemText = clippedText(line, MAX_LINE_SIZE);
|
||||
int lengthOfLine = line.size();
|
||||
@@ -221,7 +222,6 @@ const FileSearchResultList FileSearchRegExp::operator()(const QString &filePath,
|
||||
if (pos >= lengthOfLine)
|
||||
break;
|
||||
}
|
||||
++lineNr;
|
||||
if (future->isPaused())
|
||||
future->waitForResume();
|
||||
if (future->isCanceled())
|
||||
|
Reference in New Issue
Block a user