diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-12-06 14:54:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 14:54:21 +0100 |
| commit | 1f1070fdc82eebbf4ab8da401a260d2cc66f0212 (patch) | |
| tree | 016780f5e4730ae365157fe2c6630f0fded22305 /zellij-server/src/screen.rs | |
| parent | docs(changelog): plugin hidden focus fix (diff) | |
| download | sl0ppij-1f1070fdc82eebbf4ab8da401a260d2cc66f0212.tar.gz sl0ppij-1f1070fdc82eebbf4ab8da401a260d2cc66f0212.tar.xz sl0ppij-1f1070fdc82eebbf4ab8da401a260d2cc66f0212.zip | |
fix(screen): off by 1 error when focusing layout tab (#3844)
Diffstat (limited to 'zellij-server/src/screen.rs')
| -rw-r--r-- | zellij-server/src/screen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)?; |
