From 426606ba0633744a07423627184ac74b76c50749 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 6 Aug 2021 09:07:38 +0200 Subject: [PATCH] fixed split tab index - fixes #4249 --- tabby-core/src/components/splitTab.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) {