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,6 +1610,9 @@ function set(args, special)
|
||||
var type = option.type;
|
||||
if (type == "boolean")
|
||||
{
|
||||
if (matches[4])
|
||||
vimperator.echoerr("E474: Invalid argument: " + option.name + "=" + val);
|
||||
else
|
||||
option.value = !no;
|
||||
}
|
||||
else if (type == "number")
|
||||
|
||||
Reference in New Issue
Block a user