From 2cf6003d0f6f848ed14381346982240a518f3b83 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 9 Nov 2007 11:23:43 +0000 Subject: [PATCH] add a validator for the 'activate' option --- content/options.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/options.js b/content/options.js index 4d680485..cce3b61c 100644 --- a/content/options.js +++ b/content/options.js @@ -436,7 +436,8 @@ vimperator.Options = function() //{{{ "
  • tabopen: :tabopen[!] command
  • " + "
  • paste: P and gP mappings
  • " + "", - default_value: "homepage,quickmark,tabopen,paste" + default_value: "homepage,quickmark,tabopen,paste", + validator: function(value) { return value.split(",").every(function(item) { return /^(homepage|quickmark|tabopen|paste|)$/.test(item); }); } } )); this.add(new vimperator.Option(["complete", "cpt"], "charlist",