From 53a6d8c6ef28076ef1f3dac01d75275a0d1cefdc Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 27 Aug 2009 20:22:56 +1000 Subject: [PATCH] Fix completion.highlightGroup to only show highlight groups. --- common/content/style.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/content/style.js b/common/content/style.js index 7825bb32..0bacaa3a 100644 --- a/common/content/style.js +++ b/common/content/style.js @@ -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)]; }; - }); //}}}