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:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user