1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 19:32:27 +01:00

* return after quitting last tab

* update statusline on browser start
This commit is contained in:
Martin Stubenschrott
2007-10-17 20:42:01 +00:00
parent 9f0b1964eb
commit 6ab3f8b8a6
3 changed files with 13 additions and 1 deletions

View File

@@ -177,6 +177,8 @@ function Tabs() //{{{
window.close(); window.close();
else else
vimperator.quit(quit_on_last_tab == 2); vimperator.quit(quit_on_last_tab == 2);
return;
} }
var index = this.index(tab); var index = this.index(tab);

View File

@@ -1083,6 +1083,16 @@ function StatusLine() //{{{
status_bar.setAttribute("class", "chromeclass-status " + highlight_group); status_bar.setAttribute("class", "chromeclass-status " + highlight_group);
}; };
// update all fields of the statusline
this.update = function()
{
this.updateUrl();
this.updateInputBuffer();
this.updateProgress();
this.updateTabCount();
this.updateBufferPosition();
}
// if "url" is ommited, build a usable string for the URL // if "url" is ommited, build a usable string for the URL
this.updateUrl = function(url) this.updateUrl = function(url)
{ {

View File

@@ -42,7 +42,6 @@ const vimperator = (function() //{{{
var callbacks = []; var callbacks = [];
function expandPath(path) function expandPath(path)
{ {
const WINDOWS = navigator.platform == "Win32"; const WINDOWS = navigator.platform == "Win32";
@@ -787,6 +786,7 @@ const vimperator = (function() //{{{
} }
}, 50); }, 50);
vimperator.statusline.update();
vimperator.log("Vimperator fully initialized", 1); vimperator.log("Vimperator fully initialized", 1);
}, },