1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 20:54:10 +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

@@ -515,7 +515,7 @@ var Buffer = Module("Buffer", {
}
else {
let w = win.innerWidth;
rect = { x: w / 2 - w / 10, y: 0, width: w / 5, height: win.innerHeight };
rect = { x: w / 3, y: 0, width: w / 3, height: win.innerHeight };
}
var reduce = function (a, b) DOM(a).rect.top < DOM(b).rect.top ? a : b;

View File

@@ -114,6 +114,7 @@ var RangeFinder = Module("rangefinder", {
this.rangeFind.highlighted = highlighted;
this.rangeFind.selections = selections;
}
this.rangeFind.pattern = str;
if (str)
this.lastFindPattern = str;
return pattern;
@@ -145,7 +146,7 @@ var RangeFinder = Module("rangefinder", {
| this.commandline.FORCE_SINGLELINE);
}
else
this.commandline.echo((this.rangeFind.backward ? "?" : "/") + this.lastFindPattern,
this.commandline.echo((this.rangeFind.backward ? "?" : "/") + this.rangeFind.pattern,
"Normal", this.commandline.FORCE_SINGLELINE);
if (this.options["hlfind"])

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;