1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 12:55:47 +01:00

Fix -tags option in command line generated by n_a. Closes issue #369.

This commit is contained in:
Kris Maglione
2011-02-13 10:18:29 -05:00
parent 6e6eac9709
commit 1d2965bebb
2 changed files with 4 additions and 2 deletions

View File

@@ -546,7 +546,7 @@ var Bookmarks = Module("bookmarks", {
if (bmark.post) if (bmark.post)
options["-post"] = bmark.post; options["-post"] = bmark.post;
if (bmark.tags.length > 0) if (bmark.tags.length > 0)
options["-tags"] = bmark.tags.join(", "); options["-tags"] = bmark.tags;
} }
else { else {
if (buffer.title != buffer.uri.spec) if (buffer.title != buffer.uri.spec)

View File

@@ -710,7 +710,9 @@ var Commands = Module("commands", {
if (val != null && defaults[opt] === val) if (val != null && defaults[opt] === val)
continue; continue;
let chr = /^-.$/.test(opt) ? " " : "="; let chr = /^-.$/.test(opt) ? " " : "=";
if (val != null) if (isArray(val))
opt += chr + Option.stringify.stringlist(val);
else if (val != null)
opt += chr + Commands.quote(val); opt += chr + Commands.quote(val);
res.push(opt); res.push(opt);
} }