From bdef573fb47a5b100aeab70099df42e3f0cc1ab3 Mon Sep 17 00:00:00 2001 From: Paulo Coelho <9609090+prscoelho@users.noreply.github.com> Date: Mon, 6 Sep 2021 10:23:15 +0100 Subject: [PATCH] fix(tabs): use tab index for tab name (#686) --- zellij-server/src/tab.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zellij-server/src/tab.rs b/zellij-server/src/tab.rs index 16e196a1d5..be2d0ea75a 100644 --- a/zellij-server/src/tab.rs +++ b/zellij-server/src/tab.rs @@ -268,7 +268,7 @@ impl Tab { let panes = BTreeMap::new(); let name = if name.is_empty() { - format!("Tab #{}", position + 1) + format!("Tab #{}", index + 1) } else { name };