Skip to content

Commit 9d706a2

Browse files
committed
skip groups-related bits when TabView doesn't exist
1 parent 9b6eda8 commit 9d706a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/content/buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ const Buffer = Module("buffer", {
14451445
context.completions = [item for (item in generateTabs(tabs || config.tabbrowser.visibleTabs))];
14461446
}
14471447

1448-
if (!liberator.has("tabgroup"))
1448+
if (!liberator.has("tabgroup") || !tabGroup.TV)
14491449
return;
14501450

14511451
let groups = tabGroup.tabView.GroupItems;

common/content/tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ const Tabs = Module("tabs", {
406406
let matches = buffer.match(/^(\d+):?/);
407407
if (matches)
408408
return [tabs.getTab(parseInt(matches[1], 10) - 1)];
409-
else if (liberator.has("tabgroup")) {
409+
else if (liberator.has("tabgroup") && tabGroup.TV) {
410410
matches = buffer.match(/^(.+?)\.(\d+):?/);
411411
if (matches) {
412412
let [, groupName, tabNum] = matches;

0 commit comments

Comments
 (0)