1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 18:57:58 +01:00

[+] marker in the statusline

This commit is contained in:
Doug Kearns
2007-10-14 22:39:08 +00:00
parent 8e2271c183
commit 46f8507c9c
2 changed files with 19 additions and 2 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
<pre>
2007-XX-XX:
* version 0.5.3
* [+], [-] and [+-] in the statusline, whether we can go back, forward, or both
* :set showtabline now finally works as expected for all values
2007-10-11:

View File

@@ -1069,9 +1069,15 @@ 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")
if (typeof url == "string")
{
url_widget.value = url;
return;
}
url = vimperator.buffer.URL;
// make it even more vim-like
@@ -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;
};