Skip to content

Commit

Permalink
fix(compact-bar): properly pad mode indicator (#3260)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Apr 14, 2024
1 parent 988491f commit e4322dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions default-plugins/compact-bar/src/line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fn tab_line_prefix(
tab_index: None,
}];
if let Some(name) = session_name {
let name_part = format!("({}) ", name);
let name_part = format!("({})", name);
let name_part_len = name_part.width();
let text_color = match palette.theme_hue {
ThemeHue::Dark => palette.white,
Expand All @@ -215,7 +215,7 @@ fn tab_line_prefix(
}
}
let mode_part = format!("{:?}", mode).to_uppercase();
let mode_part_padded = format!("{:^8}", mode_part);
let mode_part_padded = format!(" {} ", mode_part);
let mode_part_len = mode_part_padded.width();
let mode_part_styled_text = if mode == InputMode::Locked {
style!(locked_mode_color, bg_color)
Expand Down

0 comments on commit e4322dc

Please sign in to comment.