diff options
Diffstat (limited to 'default-plugins/tab-bar/src/line.rs')
-rw-r--r-- | default-plugins/tab-bar/src/line.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/default-plugins/tab-bar/src/line.rs b/default-plugins/tab-bar/src/line.rs index 3ebeaac31..fbd9cba06 100644 --- a/default-plugins/tab-bar/src/line.rs +++ b/default-plugins/tab-bar/src/line.rs @@ -145,10 +145,8 @@ fn add_next_tabs_msg( } fn tab_line_prefix(session_name: Option<&str>, palette: Palette) -> LinePart { - let mut prefix_text = " Zellij ".to_string(); - if let Some(name) = session_name { - prefix_text.push_str(&format!("({}) ", name)); - } + let session_name = session_name.unwrap_or("Zellij"); + let prefix_text = format!(" {} ", session_name); let prefix_text_len = prefix_text.chars().count(); let prefix_styled_text = style!(palette.white, palette.cyan) |