1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 21:42:26 +01:00

Fix Bookmark Tag Completion

This change fixes Issue #122: Autocompleting Bookmark Tags Broken.

Correct building a set of tags from the bookmark cache by fixing the
corresponding flatMap parameters.
This commit is contained in:
femnad
2015-12-25 12:27:41 +02:00
parent e16a993e99
commit 55562c2aa7

View File

@@ -437,7 +437,7 @@ var Bookmarks = Module("bookmarks", {
description: "A comma-separated list of tags",
completer: function tags(context) {
context.generate = () => new RealSet(Array.from(bookmarkcache)
.flatMap(b.tags));
.flatMap(b => b.tags));
context.keys = { text: identity, description: identity };
},