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

better :q

This commit is contained in:
Martin Stubenschrott
2007-10-17 20:34:08 +00:00
parent 800d76f031
commit 9f0b1964eb
7 changed files with 25 additions and 5 deletions

View File

@@ -172,8 +172,12 @@ function Tabs() //{{{
count = 1;
if (quit_on_last_tab >= 1 && getBrowser().mTabs.length <= count)
vimperator.quit(quit_on_last_tab == 2);
{
if (vimperator.windows.length > 1)
window.close();
else
vimperator.quit(quit_on_last_tab == 2);
}
var index = this.index(tab);
if (focus_left_tab)