From 563eb1bb9e9225844b8b4e6765c5917fbf081ffb Mon Sep 17 00:00:00 2001 From: Ben Bachem <10088265+bezbac@users.noreply.github.com> Date: Tue, 12 Nov 2024 08:36:13 +0100 Subject: [PATCH] Use correct tab position when renaming --- zellij/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zellij/src/main.rs b/zellij/src/main.rs index d73bec9..540b97f 100644 --- a/zellij/src/main.rs +++ b/zellij/src/main.rs @@ -165,7 +165,7 @@ impl State { } if let Ok(tab_position) = u32::try_from(tab_position) { - rename_tab(tab_position, tab_name); + rename_tab(tab_position + 1, tab_name); } } }