mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:07:59 +01:00
make :set display an error message and abort if an explicit value is specified
for a boolean option
This commit is contained in:
@@ -1610,7 +1610,10 @@ function set(args, special)
|
|||||||
var type = option.type;
|
var type = option.type;
|
||||||
if (type == "boolean")
|
if (type == "boolean")
|
||||||
{
|
{
|
||||||
option.value = !no;
|
if (matches[4])
|
||||||
|
vimperator.echoerr("E474: Invalid argument: " + option.name + "=" + val);
|
||||||
|
else
|
||||||
|
option.value = !no;
|
||||||
}
|
}
|
||||||
else if (type == "number")
|
else if (type == "number")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user