diff --git a/NEWS b/NEWS
index 17a7dc62..8f11c2c8 100644
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,8 @@
2007-xx-xx:
* version 0.6
* THIS VERSION ONLY WORKS WITH FIREFOX 3.0
- * Tab-completion improvments for :javascript and :open
+ * added new 'laststatus' option
+ * Tab-completion improvements for :javascript and :open
* IMPORTANT: changed semantics of :echo and :echoerr: Strings must be quoted with " or ' now,
but you can do things like :echo 3+2 or :echo window.document now
* statusline is now white on black with bold font by default (like in (g)vim)
diff --git a/content/options.js b/content/options.js
index 504828f2..98c1de59 100644
--- a/content/options.js
+++ b/content/options.js
@@ -199,9 +199,24 @@ function Options() //{{{
// and bookmarks toolbar
document.getElementById("PersonalToolbar").collapsed = value.indexOf("b") > -1 ? false : true;
document.getElementById("PersonalToolbar").hidden = value.indexOf("b") > -1 ? false : true;
- // and original status bar (default), but show it, e.g. when needed for extensions
- document.getElementById("status-bar").collapsed = value.indexOf("s") > -1 ? false : true;
- document.getElementById("status-bar").hidden = value.indexOf("s") > -1 ? false : true;
+ }
+
+ function setStatusLine(value)
+ {
+ if (value == 0)
+ {
+ document.getElementById("status-bar").collapsed = true;
+ document.getElementById("status-bar").hidden = true;
+ }
+ else if (value == 1)
+ {
+ vimperator.echo("show status line only with > 1 window not implemented yet");
+ }
+ else
+ {
+ document.getElementById("status-bar").collapsed = false;
+ document.getElementById("status-bar").hidden = false;
+ }
}
function setShowTabline(value)
@@ -213,7 +228,9 @@ function Options() //{{{
getBrowser().mStrip.hidden = true;
}
else if (value == 1)
- vimperator.echo("show tabline only with > 1 page open not impl. yet");
+ {
+ vimperator.echo("show tabline only with > 1 page open not implemented yet");
+ }
else
{
getBrowser().mStrip.collapsed = false;
@@ -472,6 +489,20 @@ function Options() //{{{
default_value: true
}
));
+ addOption(new Option(["laststatus", "ls"], "number",
+ {
+ short_help: "Show the status line",
+ help: "Determines when the last window will have a status line. " +
+ "Possible values: