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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user