diff options
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 }) |
