Skip to content

Commit

Permalink
fix: dont search empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Montel committed Oct 29, 2024
1 parent 55e673f commit 6e781bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ QVariantList Project::findInFiles(const QString &pattern) const
return result;
}

if (pattern.trimmed().isEmpty()) {
return result;
}

QProcess process;

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

0 comments on commit 6e781bc

Please sign in to comment.