From 9a834e04ab3fe64e0e34ecad7f84a4bd80a1d954 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Mon, 24 Aug 2026 22:25:11 -0400 Subject: [PATCH] fix(split-view): le split cree un pane vide (sans copie ni transfert d onglet) - la copie de l onglet actif etait dedupe (fichier deja ouvert dans le pane source) et le transfert clavier (200ms) vidait le pane source -> auto-collapse -> grid disparu - comportement coherent avec le menu contextuel : pane vide, l utilisateur y glisse ses fichiers --- frontend/js/pane-manager.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/frontend/js/pane-manager.js b/frontend/js/pane-manager.js index 2439e41..ade3be5 100644 --- a/frontend/js/pane-manager.js +++ b/frontend/js/pane-manager.js @@ -692,8 +692,6 @@ const PaneManager = { this.layout = 'horizontal'; if (this.panes.length === 0) { this._buildGrid(2); - // Copy active tab to the new pane - this._copyActiveTabToNewPane(); } else { this._addPane(); } @@ -706,7 +704,6 @@ const PaneManager = { this.layout = 'vertical'; if (this.panes.length === 0) { this._buildGrid(2); - this._copyActiveTabToNewPane(); } else { this._addPane(); } @@ -1362,14 +1359,6 @@ if (typeof window !== 'undefined') { e.preventDefault(); if (PaneManager._hasAnyTab()) { PaneManager.splitRight(); - // Transfer active tab to new pane - const tm = PaneManager.getActiveTabManager(); - if (tm && tm._activeTabId) { - setTimeout(() => { - const newPaneId = PaneManager.panes.length - 1; - PaneManager.transferTab(PaneManager.activePaneId === newPaneId ? 0 : PaneManager.activePaneId, tm._activeTabId, newPaneId); - }, 200); - } } } if (e.ctrlKey && e.altKey && e.shiftKey && e.key === '\\') {