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

move global source() command to a vimperator slot

This commit is contained in:
Doug Kearns
2007-07-02 09:43:03 +00:00
parent bd11cc4da1
commit 0b8ecb0d71
2 changed files with 3 additions and 3 deletions

View File

@@ -649,7 +649,7 @@ function Commands() //{{{
} }
)); ));
addDefaultCommand(new Command(["so[urce]"], addDefaultCommand(new Command(["so[urce]"],
source, function(args) { vimperator.source(args); },
{ {
usage: ["so[urce][!] {file}"], usage: ["so[urce][!] {file}"],
short_help: "Read Ex commands from {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) if (!filename)
return; return;

View File

@@ -126,7 +126,7 @@ function init() //{{{
// Finally, read a ~/.vimperatorrc // Finally, read a ~/.vimperatorrc
// Make sourcing asynchronous, otherwise commands that open new tabs won't work // Make sourcing asynchronous, otherwise commands that open new tabs won't work
setTimeout(function() { setTimeout(function() {
source("~/.vimperatorrc", true); vimperator.source("~/.vimperatorrc", true);
vimperator.log("~/.vimperatorrc sourced", 1); vimperator.log("~/.vimperatorrc sourced", 1);
}, 50); }, 50);