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:
@@ -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\"><C-i></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"
|
||||
}
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user