diff options
author | Dante Pippi <6619666+dantepippi@users.noreply.github.com> | 2021-04-29 11:11:55 -0300 |
---|---|---|
committer | Dante Pippi <6619666+dantepippi@users.noreply.github.com> | 2021-04-29 11:11:55 -0300 |
commit | 2a3debc1c7bd23e42827ff0bfb1ac8ca40d0d5c8 (patch) | |
tree | 1ef738d85ecca0b90e1be237bdd7a185a0a4bb31 /default-plugins/tab-bar | |
parent | c958fc67eb75bcc4a6d38df52b78a34e7381d38a (diff) |
Style fix
Diffstat (limited to 'default-plugins/tab-bar')
-rw-r--r-- | default-plugins/tab-bar/src/tab.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/default-plugins/tab-bar/src/tab.rs b/default-plugins/tab-bar/src/tab.rs index 398ce3f9e..6c52e6295 100644 --- a/default-plugins/tab-bar/src/tab.rs +++ b/default-plugins/tab-bar/src/tab.rs @@ -46,16 +46,14 @@ pub fn tab_style( position: usize, is_sync_panes_active: bool, ) -> LinePart { - let sync_text = match is_sync_panes_active { - true => " (Sync)", - false => "", - }; let mut tab_text = if text.is_empty() { format!("Tab #{}", position + 1) } else { text }; - tab_text.push_str(sync_text); + if is_sync_panes_active { + tab_text.push_str(" (Sync)"); + } if is_active_tab { active_tab(tab_text) } else { |