mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 23:12:31 +02:00
Allow setting empty value to some stringlist options
* eventignore
* activate
* newtab
* suggestengines
* wildoptions
Signed-off-by: Kris Maglione <maglione.k@gmail.com>
This commit is contained in:
1 parent
d99be763ec
commit
688ea844cc
2 files changed
+3
-2
No files matched your search
@@ -1662,7 +1662,8 @@ function Completion() //{{{
|
||||
completer = function () [["true", ""], ["false", ""]];
|
||||
break;
|
||||
case "stringlist":
|
||||
len = newValues.pop().length;
|
||||
let target = newValues.pop();
|
||||
len = target ? target.length : 0;
|
||||
break;
|
||||
case "charlist":
|
||||
len = 0;
|
||||
|
||||
@@ -80,7 +80,7 @@ Option.prototype = {
|
||||
parseValues: function (value)
|
||||
{
|
||||
if (this.type == "stringlist")
|
||||
return value.split(",");
|
||||
return (value === "") ? [] : value.split(",");
|
||||
if (this.type == "charlist")
|
||||
return Array.slice(value);
|
||||
return value;
|
||||
|
||||
Reference in new issue
Block a user