mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 17:54:12 +01:00
Offer "Default value" completions for options whose default value is 0
This commit is contained in:
@@ -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