mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:17:59 +01:00
move global source() command to a vimperator slot
This commit is contained in:
@@ -649,7 +649,7 @@ function Commands() //{{{
|
||||
}
|
||||
));
|
||||
addDefaultCommand(new Command(["so[urce]"],
|
||||
source,
|
||||
function(args) { vimperator.source(args); },
|
||||
{
|
||||
usage: ["so[urce][!] {file}"],
|
||||
short_help: "Read Ex commands from {file}",
|
||||
@@ -1723,7 +1723,7 @@ function set(args, special)
|
||||
}
|
||||
}
|
||||
|
||||
function source(filename, silent)
|
||||
Vimperator.prototype.source = function(filename, silent)
|
||||
{
|
||||
if (!filename)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user