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:
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user