mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 22:08:00 +01:00
[+] marker in the statusline
This commit is contained in:
@@ -1069,10 +1069,16 @@ function StatusLine() //{{{
|
||||
status_bar.setAttribute("class", "chromeclass-status " + highlight_group);
|
||||
};
|
||||
|
||||
// if "url" is ommited, build a usable string for the URL
|
||||
this.updateUrl = function(url)
|
||||
{
|
||||
if (!url || typeof url != "string")
|
||||
url = vimperator.buffer.URL;
|
||||
if (typeof url == "string")
|
||||
{
|
||||
url_widget.value = url;
|
||||
return;
|
||||
}
|
||||
|
||||
url = vimperator.buffer.URL;
|
||||
|
||||
// make it even more vim-like
|
||||
if (url == "about:blank")
|
||||
@@ -1085,6 +1091,16 @@ function StatusLine() //{{{
|
||||
url = "[No Name]";
|
||||
}
|
||||
|
||||
var sh = getWebNavigation().sessionHistory;
|
||||
var modified = "";
|
||||
if (sh.index > 0)
|
||||
modified += "+";
|
||||
if (sh.index < sh.count -1)
|
||||
modified += "-";
|
||||
|
||||
if (modified)
|
||||
url += " [" + modified + "]"
|
||||
|
||||
url_widget.value = url;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user