mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-25 16:05:47 +01:00
Fix revision ddb9e0d895c3. :bmark! was right, <a> was wrong.
This commit is contained in:
@@ -34,11 +34,10 @@ const Bookmarks = Module("bookmarks", {
|
|||||||
add: function add(starOnly, title, url, keyword, tags, force) {
|
add: function add(starOnly, title, url, keyword, tags, force) {
|
||||||
try {
|
try {
|
||||||
let uri = util.createURI(url);
|
let uri = util.createURI(url);
|
||||||
if (force && bookmarks.isBookmarked(uri.spec))
|
if (!force && bookmarks.isBookmarked(uri.spec))
|
||||||
// WTF? This seems wrong... --Kris
|
|
||||||
for (let bmark in bookmarkcache)
|
for (let bmark in bookmarkcache)
|
||||||
if (bmark[0] == uri.spec) {
|
if (bmark.url == uri.spec) {
|
||||||
var id = bmark[5];
|
var id = bmark.id;
|
||||||
if (title)
|
if (title)
|
||||||
services.get("bookmarks").setItemTitle(id, title);
|
services.get("bookmarks").setItemTitle(id, title);
|
||||||
break;
|
break;
|
||||||
@@ -423,7 +422,7 @@ const Bookmarks = Module("bookmarks", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
commandline.open(":",
|
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);
|
modes.EX);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user