1
0
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:
Doug Kearns
2008-11-06 14:08:21 +00:00
parent 4c86955c57
commit c91f3cee03
2 changed files with 8 additions and 6 deletions

View File

@@ -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;