mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-16 20:03:32 +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:
@@ -507,7 +507,7 @@ const Tabs = Module("tabs", {
|
|||||||
let matches = arg.match(/^(\d+):?/);
|
let matches = arg.match(/^(\d+):?/);
|
||||||
|
|
||||||
if (matches) {
|
if (matches) {
|
||||||
tabs.remove(tabs.getTab(parseInt(matches[1], 10) - 1));
|
config.removeTab(tabs.getTab(parseInt(matches[1], 10) - 1));
|
||||||
removed = 1;
|
removed = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -529,7 +529,7 @@ const Tabs = Module("tabs", {
|
|||||||
|
|
||||||
if (host.indexOf(str) >= 0 || uri == str ||
|
if (host.indexOf(str) >= 0 || uri == str ||
|
||||||
(special && (title.indexOf(str) >= 0 || uri.indexOf(str) >= 0))) {
|
(special && (title.indexOf(str) >= 0 || uri.indexOf(str) >= 0))) {
|
||||||
tabs.remove(tabs.getTab(i));
|
config.removeTab(tabs.getTab(i));
|
||||||
removed++;
|
removed++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user