fix(compact-bar): properly pad mode indicator (#3260)

This commit is contained in:
Cristian Dominguez 2024-04-14 12:55:43 -03:00 committed by GitHub
parent 988491fe69
commit e4322dc1fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)