diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-06-01 10:23:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-01 10:23:02 +0200 |
| commit | 26f499bbbbbc400e058d82f91c88f4ecb8aea1c9 (patch) | |
| tree | 0c54b33825bf68ee1d28db341aa0503ef5b33876 /default-plugins | |
| parent | docs(changelog): Fix config options (diff) | |
| parent | Merge branch 'main' of github.com:zellij-org/zellij (diff) | |
| download | sl0ppij-26f499bbbbbc400e058d82f91c88f4ecb8aea1c9.tar.gz sl0ppij-26f499bbbbbc400e058d82f91c88f4ecb8aea1c9.tar.xz sl0ppij-26f499bbbbbc400e058d82f91c88f4ecb8aea1c9.zip | |
Merge pull request #554 from AdaShoelace/main
Don't rename 'unnamed' tabs upon deletion of other tabs
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 fb8e377d..7e83e85b 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)"); } |
