mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 00:52:27 +01:00
validate 'history' values
This commit is contained in:
@@ -277,8 +277,12 @@ liberator.CommandLine = function () //{{{
|
|||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
liberator.options.add(["history", "hi"],
|
liberator.options.add(["history", "hi"],
|
||||||
"Number of Ex commands and search patterns to store in the commandline history",
|
"Number of Ex commands and search patterns to store in the command-line history",
|
||||||
"number", 500);
|
"number", 500,
|
||||||
|
{
|
||||||
|
validator: function (value) value >= 0
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
liberator.options.add(["more"],
|
liberator.options.add(["more"],
|
||||||
"Pause the message list window when more than one screen of listings is displayed",
|
"Pause the message list window when more than one screen of listings is displayed",
|
||||||
|
|||||||
Reference in New Issue
Block a user