Skip to content

Commit 6e781bc

Browse files
committed
fix: dont search empty string
1 parent 55e673f commit 6e781bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/project.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ QVariantList Project::findInFiles(const QString &pattern) const
415415
return result;
416416
}
417417

418+
if (pattern.trimmed().isEmpty()) {
419+
return result;
420+
}
421+
418422
QProcess process;
419423

420424
const QStringList arguments {"--vimgrep", "-U", "--multiline-dotall", pattern, m_root};

0 commit comments

Comments
 (0)