From 75d56ccd5d6dee8d604a7062bf0047aec5361f4e Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 26 Sep 2008 00:29:34 +0000 Subject: [PATCH] validate 'history' values --- content/ui.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/ui.js b/content/ui.js index e2994043..92f0f0a7 100644 --- a/content/ui.js +++ b/content/ui.js @@ -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",