1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 22:14:12 +01:00

Use config.removeTab instead of tabs.remove in :bdelete.

The latter affects tab selection, which is not desirable here.
This commit is contained in:
Štěpán Němec
2010-12-02 04:25:04 +01:00
parent 0748369c68
commit 033c3b43c8

View File

@@ -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++;
}
}