From 033c3b43c860693e4a671bce594e84a56a02d005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Thu, 2 Dec 2010 04:25:04 +0100 Subject: [PATCH] Use config.removeTab instead of tabs.remove in :bdelete. The latter affects tab selection, which is not desirable here. --- common/content/tabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/tabs.js b/common/content/tabs.js index e09970d5..acf15acc 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -507,7 +507,7 @@ const Tabs = Module("tabs", { let matches = arg.match(/^(\d+):?/); if (matches) { - tabs.remove(tabs.getTab(parseInt(matches[1], 10) - 1)); + config.removeTab(tabs.getTab(parseInt(matches[1], 10) - 1)); removed = 1; } else { @@ -529,7 +529,7 @@ const Tabs = Module("tabs", { if (host.indexOf(str) >= 0 || uri == str || (special && (title.indexOf(str) >= 0 || uri.indexOf(str) >= 0))) { - tabs.remove(tabs.getTab(i)); + config.removeTab(tabs.getTab(i)); removed++; } }