diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs index 9bbc87b2..84cc9554 100644 --- a/zellij-server/src/screen.rs +++ b/zellij-server/src/screen.rs @@ -3485,7 +3485,7 @@ pub(crate) fn screen_thread_main( pending_tab_ids.remove(&tab_index); if pending_tab_ids.is_empty() { for (tab_index, client_id) in pending_tab_switches.drain() { - screen.go_to_tab(tab_index as usize, client_id)?; + screen.go_to_tab(tab_index as usize + 1, client_id)?; } if should_change_focus_to_new_tab { screen.go_to_tab(tab_index as usize + 1, client_id)?;