1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 23:32:26 +01:00

validate 'history' values

This commit is contained in:
Doug Kearns
2008-09-26 00:29:34 +00:00
parent 2500a9ff91
commit 75d56ccd5d

View File

@@ -277,8 +277,12 @@ liberator.CommandLine = function () //{{{
/////////////////////////////////////////////////////////////////////////////{{{
liberator.options.add(["history", "hi"],
"Number of Ex commands and search patterns to store in the commandline history",
"number", 500);
"Number of Ex commands and search patterns to store in the command-line history",
"number", 500,
{
validator: function (value) value >= 0
}
);
liberator.options.add(["more"],
"Pause the message list window when more than one screen of listings is displayed",