1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 21:17:59 +01:00

merge use of "[Help]" and "[No Name]" in the status line for the internal help

page and about:blank
This commit is contained in:
Doug Kearns
2007-10-09 05:13:34 +00:00
parent ae0768055f
commit 3c7fbb878d
2 changed files with 12 additions and 1 deletions

View File

@@ -1081,6 +1081,17 @@ function StatusLine() //{{{
if (!url || typeof url != "string")
url = vimperator.buffer.URL;
// make it even more vim-like
if (url == "about:blank")
{
var title = vimperator.buffer.title;
if (title == "Vimperator Help")
url = "[Help]";
else if (!title)
url = "[No Name]";
}
url_widget.value = url;
};