From 808feaa5bda35cabaa608ed3e848f59c02127160 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 9 Oct 2007 05:08:47 +0000 Subject: [PATCH] use "[Help]" in the status line for the internal help page --- content/help.js | 2 +- content/ui.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/content/help.js b/content/help.js index 6b913869..170b76b4 100644 --- a/content/help.js +++ b/content/help.js @@ -200,7 +200,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 150dc84c..743a1111 100644 --- a/content/ui.js +++ b/content/ui.js @@ -1062,8 +1062,16 @@ function StatusLine() //{{{ if (!url || typeof url != "string") url = vimperator.buffer.URL; + // make it even more vim-like if (url == "about:blank") - url = "[No Name]"; // make it even more vim-like + { + var title = vimperator.buffer.title; + + if (title == "Vimperator Help") + url = "[Help]"; + else if (!title) + url = "[No Name]"; + } url_widget.value = url; };