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

allow ^= to be used for prepending values to string options and for multiplying

number options
This commit is contained in:
Doug Kearns
2007-11-06 08:59:02 +00:00
parent d3960bd1d2
commit e1cd0e07bb
2 changed files with 136 additions and 77 deletions

View File

@@ -106,6 +106,14 @@ vimperator.Option = function(names, type, extra_info) //{{{
return false;
}
this.isValidValue = function(value)
{
if (this.validator)
return this.validator(value);
else
return true;
}
this.reset = function()
{
this.value = this.default_value;
@@ -461,8 +469,8 @@ vimperator.Options = function() //{{{
short_help: "Set the external text editor",
help: "Sets the editor to run when <code class=\"mapping\">&lt;C-i&gt;</code> " +
"is pressed in INSERT and TEXTAREA modes. Note that Vimperator will " +
"not behave correctly if the editor forks its own process, such as with "+
"gvim without the -f argument.",
"not behave correctly if the editor forks its own process, such as with "+
"gvim without the -f argument.",
default_value: "gvim -f"
}
));