From 38ebd2273c27815737f4c8d80cc251fea2b84d64 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 4 Sep 2007 02:12:04 +0000 Subject: [PATCH] fix typo in 'scroll' validator - incorrectly restricting value to 0-2 --- chrome/content/vimperator/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/vimperator/options.js b/chrome/content/vimperator/options.js index 92a49f2c..3f97c35a 100644 --- a/chrome/content/vimperator/options.js +++ b/chrome/content/vimperator/options.js @@ -458,7 +458,7 @@ function Options() //{{{ "When a {count} is specified to the <C-u> or <C-d> commands this is used to set the value of 'scroll' and also used for the current command. " + "The value can be reset to half the window height with :set scroll=0.", default_value: 0, - validator: function (value) { if (value >= 0 && value <= 2) return true; else return false; } + validator: function (value) { if (value >= 0) return true; else return false; } } )); addOption(new Option(["showmode", "smd"], "boolean", @@ -489,7 +489,7 @@ function Options() //{{{ "NOTE: Not fully implemented yet and buggy with stal=0", setter: function(value) { Options.setPref("showtabline", value); setShowTabline(value); }, default_value: 2, - validator: function (value) { if (value>=0 && value <=2) return true; else return false; } + validator: function (value) { if (value >= 0 && value <= 2) return true; else return false; } } )); addOption(new Option(["titlestring"], "string",