1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 11:17:58 +01:00

if no argument is given to :winopen open about:blank in the new window

This commit is contained in:
Doug Kearns
2007-08-27 07:08:53 +00:00
parent ee350f2387
commit 7064444fd8

View File

@@ -1222,7 +1222,13 @@ function Commands() //{{{
} }
)); ));
addDefaultCommand(new Command(["wino[pen]", "w[open]", "wine[dit]"], addDefaultCommand(new Command(["wino[pen]", "w[open]", "wine[dit]"],
function(args) { vimperator.open(args, vimperator.NEW_WINDOW); }, function(args)
{
if (args)
vimperator.open(args, vimperator.NEW_WINDOW);
else
vimperator.open("about:blank", vimperator.NEW_WINDOW);
},
{ {
usage: ["wino[pen] [url] [, url]"], usage: ["wino[pen] [url] [, url]"],
short_help: "Open one or more URLs in a new window", short_help: "Open one or more URLs in a new window",