diff --git a/tabby-core/src/components/splitTab.component.ts b/tabby-core/src/components/splitTab.component.ts index 6fe3e076..5103e9bc 100644 --- a/tabby-core/src/components/splitTab.component.ts +++ b/tabby-core/src/components/splitTab.component.ts @@ -420,7 +420,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit newContainer.ratios = [1] target.children.splice(relative ? target.children.indexOf(relative) : -1, 1, newContainer) target = newContainer - insertIndex = 0 + insertIndex = 'tl'.includes(side) ? 0 : 1 } for (let i = 0; i < target.children.length; i++) {