mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:48:00 +01:00
* return after quitting last tab
* update statusline on browser start
This commit is contained in:
@@ -177,6 +177,8 @@ function Tabs() //{{{
|
||||
window.close();
|
||||
else
|
||||
vimperator.quit(quit_on_last_tab == 2);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var index = this.index(tab);
|
||||
|
||||
@@ -1083,6 +1083,16 @@ function StatusLine() //{{{
|
||||
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
|
||||
this.updateUrl = function(url)
|
||||
{
|
||||
|
||||
@@ -42,7 +42,6 @@ const vimperator = (function() //{{{
|
||||
|
||||
var callbacks = [];
|
||||
|
||||
|
||||
function expandPath(path)
|
||||
{
|
||||
const WINDOWS = navigator.platform == "Win32";
|
||||
@@ -787,6 +786,7 @@ const vimperator = (function() //{{{
|
||||
}
|
||||
}, 50);
|
||||
|
||||
vimperator.statusline.update();
|
||||
vimperator.log("Vimperator fully initialized", 1);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user