From 25d7a2fefd33965b749d1d8a128bb1a7269c659b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Sun, 25 Sep 2011 12:00:57 +0200 Subject: [PATCH] Fix 'findflags' help spec and make dactyl.generateHelp follow suit. --- common/content/dactyl.js | 13 +++++++------ common/locale/en-US/options.xml | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index e7b8a7e2..0eec5c00 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -819,12 +819,13 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { res.* += <> {template.map(obj.names.slice().reverse(), tag, " ")} - { - let (name = (obj.specs || obj.names)[0]) - spec(template.highlightRegexp(tag(name), - /\[(.*?)\]/g, - function (m, n0) {n0}), - name) + {(obj instanceof Option) + ? template.map(obj.names.slice(), spec, " ") + : let (name = (obj.specs || obj.names)[0]) + spec(template.highlightRegexp(tag(name), + /\[(.*?)\]/g, + function (m, n0) {n0}), + name) }{ !obj.type ? "" : <> {obj.type} diff --git a/common/locale/en-US/options.xml b/common/locale/en-US/options.xml index 74572837..8f530c9c 100644 --- a/common/locale/en-US/options.xml +++ b/common/locale/en-US/options.xml @@ -721,7 +721,7 @@ 'ff' 'findflags' - 'findflags' + 'findflags' 'ff' &option.findflags.type; &option.findflags.default;