From 9d6dbde3abcd6549a6aa433b8a1e49f717a30250 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Fri, 30 Oct 2009 00:19:59 +0100 Subject: vimperator: updated buftabs --- vimperator/plugin/buftabs.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vimperator') diff --git a/vimperator/plugin/buftabs.js b/vimperator/plugin/buftabs.js index cb3adcf..5cb46ca 100644 --- a/vimperator/plugin/buftabs.js +++ b/vimperator/plugin/buftabs.js @@ -152,7 +152,7 @@ tabContainer.addEventListener("TabSelect", function (event) { /// Options options.add(["buftabs", "buftabs"], "Control whether to use buftabs in the statusline", - "number", "1", + "boolean", 1, { setter: function (value) { @@ -165,6 +165,7 @@ options.add(["buftabs", "buftabs"], } else { buftabs.destroyBar(); statusline.updateUrl = buftabs._statusline_updateUrl; + statusline.update(); } return value; @@ -172,8 +173,8 @@ options.add(["buftabs", "buftabs"], completer: function (context) [ - ["0", "Don't show buftabs, show the url"], - ["1", "Show buftabs"] + [0, "Don't show buftabs, show the url"], + [1, "Show buftabs"] ], validator: Option.validateCompleter -- cgit v1.2.3