From 3c7fbb878d781790f85da76109fa66880f3219d8 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 9 Oct 2007 05:13:34 +0000 Subject: [PATCH] merge use of "[Help]" and "[No Name]" in the status line for the internal help page and about:blank --- content/help.js | 2 +- content/ui.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/content/help.js b/content/help.js index 89b0e16e..bc0cc989 100644 --- a/content/help.js +++ b/content/help.js @@ -206,7 +206,7 @@ vimperator.help = function(section, easter) //{{{ var fulldoc = '\n' + '\n' + - '\n\nVimperator help\n' + + '\n\nVimperator Help\n' + // XXX: stylesheet broken here? Have to add it in the vimperator.xul file '\n' + '\n\n
\n' + diff --git a/content/ui.js b/content/ui.js index f916c03e..f0b7e378 100644 --- a/content/ui.js +++ b/content/ui.js @@ -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; };