diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-02-13 10:18:29 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-02-13 10:18:29 -0500 |
commit | 1d2965bebbb6efd27591b593dd6d3882a369eaa7 (patch) | |
tree | 98d1326d58cdef64314361fad9e53b458eac1a5e /common | |
parent | 6e6eac97093df780c3c775142694478f0f1d0b8e (diff) | |
download | pentadactyl-1d2965bebbb6efd27591b593dd6d3882a369eaa7.tar.gz |
Fix -tags option in command line generated by n_a. Closes issue #369.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/bookmarks.js | 2 | ||||
-rw-r--r-- | common/modules/commands.jsm | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index d49016c5..f6b25df6 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -546,7 +546,7 @@ var Bookmarks = Module("bookmarks", { if (bmark.post) options["-post"] = bmark.post; if (bmark.tags.length > 0) - options["-tags"] = bmark.tags.join(", "); + options["-tags"] = bmark.tags; } else { if (buffer.title != buffer.uri.spec) diff --git a/common/modules/commands.jsm b/common/modules/commands.jsm index 87fdcb56..4828e978 100644 --- a/common/modules/commands.jsm +++ b/common/modules/commands.jsm @@ -710,7 +710,9 @@ var Commands = Module("commands", { if (val != null && defaults[opt] === val) continue; 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); res.push(opt); } |