mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 00:52:32 +02:00
Fix completion.highlightGroup to only show highlight groups.
This commit is contained in:
1 parent
aad5eac202
commit
53a6d8c6ef
1 file changed
+3
-4
@@ -732,11 +732,10 @@ liberator.registerObserver("load_completion", function () {
|
||||
context.completions = [[c.leafName.replace(/\.vimp$/, ""), c.parent.path] for ([, c] in Iterator(colors))]
|
||||
};
|
||||
|
||||
// FIXME: extract from :highlight
|
||||
completion.highlightGroup = function highlightGroup(context, args) {
|
||||
return commands.get("highlight").completer(context, args);
|
||||
completion.highlightGroup = function highlightGroup(context) {
|
||||
context.title = ["Highlight Group", "Value"];
|
||||
context.completions = [[v.class, v.value] for (v in highlight)];
|
||||
};
|
||||
|
||||
});
|
||||
//}}}
|
||||
|
||||
|
||||
Reference in new issue
Block a user