diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-14 05:30:20 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-14 05:30:20 +0300 |
| commit | 226e87306deaba017d36583f51ae34e42b303aad (patch) | |
| tree | 2a1155689b75007c15d93735aedfa58db7a05edf /src/app/api/layouts.rs | |
| parent | 17544c36ee397233e2f7b3319d86e3b517e3b5d0 (diff) | |
fix: preserve tab identity across restored sessions
Diffstat (limited to 'src/app/api/layouts.rs')
| -rw-r--r-- | src/app/api/layouts.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/app/api/layouts.rs b/src/app/api/layouts.rs index e397ccf8..9c492937 100644 --- a/src/app/api/layouts.rs +++ b/src/app/api/layouts.rs @@ -151,10 +151,9 @@ impl App { let closed_tab_id = self .public_tab_id(target_ws_idx, target_tab_idx) .unwrap_or_else(|| { - format!( - "{}:{}", - self.public_workspace_id(target_ws_idx), - target_tab_idx + 1 + crate::workspace::public_tab_id_for_number( + &self.public_workspace_id(target_ws_idx), + target_tab_idx + 1, ) }); let terminal_ids = self |
