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

move global quit() command to a vimperator slot

This commit is contained in:
Doug Kearns
2007-07-02 11:17:22 +00:00
parent abc8370a61
commit dabfba6c06
3 changed files with 6 additions and 6 deletions

View File

@@ -593,7 +593,7 @@ function Commands() //{{{
}
));
addDefaultCommand(new Command(["quita[ll]", "qa[ll]"],
function() { quit(false); },
function() { vimperator.quit(false); },
{
usage: ["quita[ll]"],
short_help: "Quit Vimperator",
@@ -811,7 +811,7 @@ function Commands() //{{{
}
));
addDefaultCommand(new Command(["xa[ll]", "wqa[ll]", "wq"],
function() { quit(true); },
function() { vimperator.quit(true); },
{
usage: ["wqa[ll]", "xa[ll]"],
short_help: "Save the session and quit",
@@ -1536,7 +1536,7 @@ Vimperator.prototype.beep = function()
}
// quit vimperator, no matter how many tabs/windows are open
function quit(save_session)
Vimperator.prototype.quit = function(save_session)
{
if (save_session)
Options.setFirefoxPref("browser.startup.page", 3); // start with saved session