diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-26 14:48:57 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-26 14:50:13 +0300 |
| commit | 57c880f0ebaa5011abc90f4e2fd4f84fc072ce35 (patch) | |
| tree | 9f662b19cec2e9c9e50e87eb5e96def9e8ae9822 /src/app/api/tabs.rs | |
| parent | 9eec3029e13b791b8a4954e38d5bb7db6e2ff68f (diff) | |
feat: add global last-pane navigation
refs #287
Diffstat (limited to 'src/app/api/tabs.rs')
| -rw-r--r-- | src/app/api/tabs.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app/api/tabs.rs b/src/app/api/tabs.rs index 06d59fe3..0344fcea 100644 --- a/src/app/api/tabs.rs +++ b/src/app/api/tabs.rs @@ -109,8 +109,7 @@ impl App { } } if focus { - self.state.switch_workspace(ws_idx); - self.state.switch_tab(tab_idx); + self.state.switch_workspace_tab(ws_idx, tab_idx); self.state.mode = Mode::Terminal; } self.schedule_session_save(); @@ -142,8 +141,7 @@ impl App { let Some((ws_idx, tab_idx)) = self.parse_tab_id(&target.tab_id) else { return tab_not_found(id, &target.tab_id); }; - self.state.switch_workspace(ws_idx); - self.state.switch_tab(tab_idx); + self.state.switch_workspace_tab(ws_idx, tab_idx); let tab = self.tab_info(ws_idx, tab_idx).unwrap(); encode_success(id, ResponseResult::TabInfo { tab }) |
