1
0
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:
Doug Kearns
2007-06-25 12:53:22 +00:00
parent a3d463d8bb
commit cbce7cc74e

View File

@@ -1610,7 +1610,10 @@ function set(args, special)
var type = option.type;
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")
{