mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 01:12:31 +02:00
Offer "Default value" completions for options whose default value is 0
This commit is contained in:
1 parent
5a27b84503
commit
6453aa2cdc
1 file changed
+4
-1
@@ -741,7 +741,10 @@ function Options() //{{{
|
||||
{
|
||||
context.fork("default", 0, this, function (context) {
|
||||
context.title = ["Extra Completions"];
|
||||
context.completions = [[option.value, "Current value"], [option.defaultValue, "Default value"]].filter(function (f) f[0])
|
||||
context.completions = [
|
||||
[option.value, "Current value"],
|
||||
[option.defaultValue, "Default value"]
|
||||
].filter(function (f) f[0] != "");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user