Commit 0e3b24c9 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

runners/recentdocuments: Do not set match type to exact match when query is short

BUG: 431603
parent 9f8d401d
......@@ -71,8 +71,8 @@ void RecentDocuments::match(Plasma::RunnerContext &context)
Plasma::QueryMatch match(this);
auto relevance = 0.5;
match.setType(Plasma::QueryMatch::PossibleMatch);
if (url.fileName() == term) {
match.setType(Plasma::QueryMatch::CompletionMatch);
if (term.size() >= 5 && url.fileName() == term) {
relevance = 1.0;
match.setType(Plasma::QueryMatch::ExactMatch);
} else if (url.fileName().startsWith(term)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment