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

fix typo in 'scroll' validator - incorrectly restricting value to 0-2

This commit is contained in:
Doug Kearns
2007-09-04 02:12:04 +00:00
parent 5bd722f69f
commit 38ebd2273c

View File

@@ -458,7 +458,7 @@ function Options() //{{{
"When a <code class=\"argument\">{count}</code> is specified to the <code class=\"mapping\">&lt;C-u&gt;</code> or <code class=\"mapping\">&lt;C-d&gt;</code> commands this is used to set the value of <code class=\"option\">'scroll'</code> and also used for the current command. " + "When a <code class=\"argument\">{count}</code> is specified to the <code class=\"mapping\">&lt;C-u&gt;</code> or <code class=\"mapping\">&lt;C-d&gt;</code> commands this is used to set the value of <code class=\"option\">'scroll'</code> and also used for the current command. " +
"The value can be reset to half the window height with <code class=\"command\">:set scroll=0</code>.", "The value can be reset to half the window height with <code class=\"command\">:set scroll=0</code>.",
default_value: 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", addOption(new Option(["showmode", "smd"], "boolean",
@@ -489,7 +489,7 @@ function Options() //{{{
"NOTE: Not fully implemented yet and buggy with stal=0", "NOTE: Not fully implemented yet and buggy with stal=0",
setter: function(value) { Options.setPref("showtabline", value); setShowTabline(value); }, setter: function(value) { Options.setPref("showtabline", value); setShowTabline(value); },
default_value: 2, 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", addOption(new Option(["titlestring"], "string",