1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 01:35:45 +01:00

Don't commafy charlist options in :set output.

This commit is contained in:
Kris Maglione
2011-10-08 04:36:14 -04:00
parent be52494f4f
commit 0307817e4d
3 changed files with 7 additions and 4 deletions

View File

@@ -863,8 +863,10 @@ var Options = Module("options", {
option.pre = "no";
option.default = (opt.defaultValue ? "" : "no") + opt.name;
}
else if (isArray(opt.value))
option.value = <>={template.map(opt.value, function (v) template.highlight(String(v)), <>,<span style="width: 0; display: inline-block"> </span></>)}</>;
else if (isArray(opt.value) && opt.type != "charlist")
option.value = <>={template.map(opt.value,
function (v) template.highlight(String(v)),
<>,<span style="width: 0; display: inline-block"> </span></>)}</>;
else
option.value = <>={template.highlight(opt.stringValue)}</>;
yield option;