From d1d37bcdaecc4eb1bf3151628295e3cc44c75ec4 Mon Sep 17 00:00:00 2001 From: Heejin Date: Sun, 18 Sep 2016 11:13:02 +0900 Subject: [PATCH] Fix that non-recent items are not searched --- app/main/plugins/hain-plugin-filesearch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/plugins/hain-plugin-filesearch/index.js b/app/main/plugins/hain-plugin-filesearch/index.js index 94eb3c0b..cb6b2cf4 100644 --- a/app/main/plugins/hain-plugin-filesearch/index.js +++ b/app/main/plugins/hain-plugin-filesearch/index.js @@ -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 = [];