Fix Tab (Sync) suffix
This commit is contained in:
parent
a7363d410f
commit
c958fc67eb
1 changed files with 5 additions and 4 deletions
|
|
@ -47,14 +47,15 @@ pub fn tab_style(
|
||||||
is_sync_panes_active: bool,
|
is_sync_panes_active: bool,
|
||||||
) -> LinePart {
|
) -> LinePart {
|
||||||
let sync_text = match is_sync_panes_active {
|
let sync_text = match is_sync_panes_active {
|
||||||
true => " (Sync)".to_string(),
|
true => " (Sync)",
|
||||||
false => "".to_string(),
|
false => "",
|
||||||
};
|
};
|
||||||
let tab_text = if text.is_empty() {
|
let mut tab_text = if text.is_empty() {
|
||||||
format!("Tab #{}{}", position + 1, sync_text)
|
format!("Tab #{}", position + 1)
|
||||||
} else {
|
} else {
|
||||||
text
|
text
|
||||||
};
|
};
|
||||||
|
tab_text.push_str(sync_text);
|
||||||
if is_active_tab {
|
if is_active_tab {
|
||||||
active_tab(tab_text)
|
active_tab(tab_text)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue