diff options
| author | AdaShoelace <adashoelace@gmail.com> | 2021-05-31 17:00:14 +0200 |
|---|---|---|
| committer | AdaShoelace <adashoelace@gmail.com> | 2021-05-31 17:00:14 +0200 |
| commit | b3e9dda726212da662587bb320e5758f07341dc3 (patch) | |
| tree | b7c00145e3d72ead72f06e9f76aa01fc584962dc /default-plugins/tab-bar/src | |
| parent | Merge pull request #553 from a-kenji/update-manpage (diff) | |
| download | sl0ppij-b3e9dda726212da662587bb320e5758f07341dc3.tar.gz sl0ppij-b3e9dda726212da662587bb320e5758f07341dc3.tar.xz sl0ppij-b3e9dda726212da662587bb320e5758f07341dc3.zip | |
Set tab name on creation instead of on render
Diffstat (limited to 'default-plugins/tab-bar/src')
| -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)"); } |
