Permalink
Browse files

Fix partial name element search

  • Loading branch information...
mniip committed May 3, 2018
1 parent 730cf08 commit 7f5c164d22996c66f254ffa971d19ce77af9a76b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/elementsearch/ElementSearchActivity.cpp
@@ -117,7 +117,7 @@ void ElementSearchActivity::searchTools(String query)
std::transform(nameLower.begin(), nameLower.end(), nameLower.begin(), ::tolower);
if(nameLower == queryLower)
exactmatches.push_back(*iter);
else if(!nameLower.BeginsWith(queryLower))
else if(nameLower.BeginsWith(queryLower))
frontmatches.push_back(*iter);
else if(nameLower.Contains(queryLower))
matches.push_back(*iter);

0 comments on commit 7f5c164

Please sign in to comment.