1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 08:44:13 +01:00

delay sourcing of the rc file so that commands that open new tabs (like js!) can work

This commit is contained in:
Viktor Kojouharov
2007-04-28 10:15:14 +00:00
parent bfcf598bf2
commit 17cbe30053

View File

@@ -247,10 +247,14 @@ function init()
logMessage("Initialized");
// at the very last, read a ~/.vimperatorrc
source("~/.vimperatorrc", true);
logMessage("~/.vimperatorrc sourced");
/*
* Finally, read a ~/.vimperatorrc
* Make sourcing asynchronous, otherwise commands that open new tabs won't work
*/
setTimeout(function() {
source("~/.vimperatorrc", true);
logMessage("~/.vimperatorrc sourced");
}, 50);
}
function unload()