From d9d523b84beeb9e0532517a0f45e9ea712d2d38f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 3 Jun 2011 10:40:59 -0400 Subject: [PATCH] Add completion for :colo default. Closes issue #544. --- common/modules/highlight.jsm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/common/modules/highlight.jsm b/common/modules/highlight.jsm index 02020afc..cb772bdb 100644 --- a/common/modules/highlight.jsm +++ b/common/modules/highlight.jsm @@ -416,10 +416,14 @@ var Highlights = Module("Highlight", { context.title = ["Color Scheme", "Runtime Path"]; context.keys = { text: function (f) f.leafName.replace(extRe, ""), description: ".parent.path" }; - context.completions = array.flatten( - io.getRuntimeDirectories("colors").map( - function (dir) dir.readDirectory().filter( - function (file) extRe.test(file.leafName)))); + context.completions = + array.flatten( + io.getRuntimeDirectories("colors").map( + function (dir) dir.readDirectory().filter( + function (file) extRe.test(file.leafName)))) + .concat([ + { leafName: "default", parent: { path: /*L*/"Revert to builtin colorscheme" } } + ]); };