diff --git a/chrome/content/vimperator/help.js b/chrome/content/vimperator/help.js index 04949cc2..ea979e9a 100644 --- a/chrome/content/vimperator/help.js +++ b/chrome/content/vimperator/help.js @@ -188,7 +188,7 @@ function help(section, easter) // XXX: stylesheet broken here? Have to add it in the vimperator.xul file '\n'+ '\n
\n
| \n' + // should change that to: white-space: pre-wrap; once CSS3 hits firefox - 'version ' + g_vimperator_version + '\n'+ + 'version ' + vimperator.ver + '\n'+ header + introduction + mappings + @@ -237,6 +237,16 @@ function help(section, easter) { var element = doc.getElementById(section); if (!element) + { + var firstChar = section.charAt(0); + if (firstChar != ':' && firstChar != "'") + { + element = doc.getElementById(':' + section); + if (!element) + element = doc.getElementById("'" + section + "'"); + } + } + if (!element) { vimperator.echoerr("E149: Sorry, no help for " + section); return; |