aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifest.json2
-rw-r--r--src/background/usecases/completions.js11
2 files changed, 7 insertions, 6 deletions
diff --git a/manifest.json b/manifest.json
index 689ae5f..1f7f5f2 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Vim Vixen",
"description": "Vim Vixen",
- "version": "0.17",
+ "version": "0.18",
"icons": {
"48": "resources/icon_48x48.png",
"96": "resources/icon_96x96.png"
diff --git a/src/background/usecases/completions.js b/src/background/usecases/completions.js
index af7aaf2..9385760 100644
--- a/src/background/usecases/completions.js
+++ b/src/background/usecases/completions.js
@@ -183,10 +183,11 @@ export default class CompletionsInteractor {
async queryBookmarkItems(name, keywords) {
let bookmarks = await this.completionRepository.queryBookmarks(keywords);
- return bookmarks.map(page => new CompletionItem({
- caption: page.title,
- content: name + ' ' + page.url,
- url: page.url
- }));
+ return bookmarks.slice(0, COMPLETION_ITEM_LIMIT)
+ .map(page => new CompletionItem({
+ caption: page.title,
+ content: name + ' ' + page.url,
+ url: page.url
+ }));
}
}