diff options
author | Brooks J Rady <b.j.rady@gmail.com> | 2021-06-01 18:05:32 +0100 |
---|---|---|
committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-06-01 18:05:32 +0100 |
commit | 98c29832e17683875d5c40c65c5df184972554da (patch) | |
tree | 3d8b8b45d5ee9eec5b5b2423a7d93f041f763b98 /default-plugins | |
parent | f2c5ee44f7f2c61f50b043bd8e55f915a3667fce (diff) | |
parent | d7f12ea58c3e936ecf26d74a639da4e92d346a9b (diff) |
Merge branch 'main' into resize-overhaul
Diffstat (limited to 'default-plugins')
-rw-r--r-- | default-plugins/tab-bar/src/tab.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/default-plugins/tab-bar/src/tab.rs b/default-plugins/tab-bar/src/tab.rs index fb8e377d1..7e83e85bb 100644 --- a/default-plugins/tab-bar/src/tab.rs +++ b/default-plugins/tab-bar/src/tab.rs @@ -46,11 +46,7 @@ pub fn tab_style( capabilities: PluginCapabilities, ) -> LinePart { let separator = tab_separator(capabilities); - let mut tab_text = if text.is_empty() { - format!("Tab #{}", position + 1) - } else { - text - }; + let mut tab_text = text; if is_sync_panes_active { tab_text.push_str(" (Sync)"); } |