From 85cf22b54638af963f506b13526c68d6cc9cf4db Mon Sep 17 00:00:00 2001 From: Pete Doherty Date: Thu, 28 Mar 2024 10:41:38 -0400 Subject: [PATCH] fix first window naming bug --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 748eea9..6bf2f05 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -255,7 +255,7 @@ fn convert_config_to_tmux_commands( let session_start_directory = build_session_start_directory(&config); - let first_window = if let Some(window) = config.windows.get(base_indices.base_index) { + let first_window = if let Some(window) = config.windows.first() { window.name.clone() } else { None