Skip to content

Commit

Permalink
fix(screen): off by 1 error when focusing layout tab (#3844)
Browse files Browse the repository at this point in the history
  • Loading branch information
imsnif authored Dec 6, 2024
1 parent fe2e6ed commit 1f1070f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zellij-server/src/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 1f1070f

Please sign in to comment.