Skip to content

Commit f5495fb

Browse files
committed
Merge pull request #290 from stemar94/master
Avoid tab spawn bomb
2 parents ba7d8e7 + fa52639 commit f5495fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/content/tabs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@ const Tabs = Module("tabs", {
717717
commands.add(["tabd[o]", "bufd[o]"],
718718
"Execute a command in each tab",
719719
function (args) {
720-
for (let i = 0; i < tabs.count; i++) {
720+
let count = tabs.count;
721+
for (let i = 0; i < Math.min(tabs.count, count); i++) {
721722
tabs.select(i);
722723
liberator.execute(args.string, null, true);
723724
}

0 commit comments

Comments
 (0)