Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
Fix that non-recent items are not searched
Browse files Browse the repository at this point in the history
  • Loading branch information
Heejin committed Sep 18, 2016
1 parent c187016 commit d1d37bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/plugins/hain-plugin-filesearch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module.exports = (context) => {

function search(query, res) {
const query_trim = query.replace(' ', '');
const recentFuzzyResults = util.fuzzy(_recentUsedItems, query_trim);
const recentFuzzyResults = util.fuzzy(_recentUsedItems, query_trim).slice(0, 2);
const defaultFuzzyResults = util.fuzzy(db, query_trim);

let recentSearchResults = [];
Expand Down

0 comments on commit d1d37bc

Please sign in to comment.