1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 22:24:13 +01:00

Fix revision ddb9e0d895c3. :bmark! was right, <a> was wrong.

This commit is contained in:
Kris Maglione
2010-09-20 12:23:29 -04:00
parent 14a56c6d5c
commit 46673bfc76

View File

@@ -34,11 +34,10 @@ const Bookmarks = Module("bookmarks", {
add: function add(starOnly, title, url, keyword, tags, force) {
try {
let uri = util.createURI(url);
if (force && bookmarks.isBookmarked(uri.spec))
// WTF? This seems wrong... --Kris
if (!force && bookmarks.isBookmarked(uri.spec))
for (let bmark in bookmarkcache)
if (bmark[0] == uri.spec) {
var id = bmark[5];
if (bmark.url == uri.spec) {
var id = bmark.id;
if (title)
services.get("bookmarks").setItemTitle(id, title);
break;
@@ -423,7 +422,7 @@ const Bookmarks = Module("bookmarks", {
}
commandline.open(":",
commands.commandToString({ command: "bmark", options: options, arguments: [buffer.URL], bang: bmarks.length == 1 }),
commands.commandToString({ command: "bmark", options: options, arguments: [buffer.URL] }),
modes.EX);
});