1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 15:45:48 +01:00

Fix: ':bmark' cannot bookmarks /['"]/ included URL.

This commit is contained in:
anekos
2009-02-10 11:31:29 +09:00
parent c9c708f636
commit 9ef16288f0

View File

@@ -347,7 +347,7 @@ function Bookmarks() //{{{
"Add a bookmark", "Add a bookmark",
function (args) function (args)
{ {
let url = args.length == 0 ? buffer.URL : args[0]; let url = args.literalArg || buffer.URL;
let title = args["-title"] || (args.length == 0 ? buffer.title : null); let title = args["-title"] || (args.length == 0 ? buffer.title : null);
let keyword = args["-keyword"] || null; let keyword = args["-keyword"] || null;
let tags = args["-tags"] || []; let tags = args["-tags"] || [];
@@ -363,6 +363,7 @@ function Bookmarks() //{{{
{ {
argCount: "?", argCount: "?",
bang: true, bang: true,
literal: 0,
completer: function (context, args) completer: function (context, args)
{ {
if (!args.bang) if (!args.bang)