1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 07:18:00 +01:00

Fix broken :colorscheme completion.

This commit is contained in:
Kris Maglione
2009-10-31 18:42:48 -04:00
parent 785c416b3d
commit cf03f99246
3 changed files with 38 additions and 12 deletions

View File

@@ -826,11 +826,11 @@ liberator.registerObserver("load_completion", function () {
completion.colorScheme = function colorScheme(context) {
context.title = ["Color Scheme", "Runtime Path"];
context.keys = { text: function (f) f.leafName.replace(/\.vimp$/, ""), description: "parent.path" };
context.keys = { text: function (f) f.leafName.replace(/\.vimp$/, ""), description: ".parent.path" };
context.completions = util.Array.flatten(
io.getRuntimeDirectories("colors").map(
function (dir) dir.readDirectory().filter(
function (file) /\.vimp$/.test(file.leafName) && !colors.some(function (c) c.leafName == file.leafName))))
function (file) /\.vimp$/.test(file.leafName))))
};