mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 04:37:58 +01:00
if no argument is given to :winopen open about:blank in the new window
This commit is contained in:
@@ -1222,7 +1222,13 @@ function Commands() //{{{
|
||||
}
|
||||
));
|
||||
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]"],
|
||||
short_help: "Open one or more URLs in a new window",
|
||||
|
||||
Reference in New Issue
Block a user