mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
don't filter out "" elements from stringlist options as they can be significant
E.g. 'cdpath'
This commit is contained in:
@@ -643,7 +643,12 @@ function Options() //{{{
|
||||
}
|
||||
break;
|
||||
}
|
||||
newValue = newValue.filter(function (x) x != "").join(option.type == "charlist" ? "" : ",");
|
||||
|
||||
// NOTE: empty elements are significant in stringlist options like 'cdpath'
|
||||
if (option.type == "stringlist")
|
||||
newValue = newValue.join(",");
|
||||
else
|
||||
newValue = newValue.filter(function (x) x != "").join("");
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user