aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-server/src/screen.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-12-06 14:54:21 +0100
committerGitHub <noreply@github.com>2024-12-06 14:54:21 +0100
commit1f1070fdc82eebbf4ab8da401a260d2cc66f0212 (patch)
tree016780f5e4730ae365157fe2c6630f0fded22305 /zellij-server/src/screen.rs
parentdocs(changelog): plugin hidden focus fix (diff)
downloadsl0ppij-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.rs2
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)?;