fix: pad LSP indicators in both bars

This commit is contained in:
Valdemar Lorenzen
2026-10-20 14:35:21 +02:00
parent 33a8c423ac
commit 2727425518
3 changed files with 14 additions and 2 deletions
+12
View File
@@ -4949,6 +4949,17 @@ fn native_lsp_names_are_borrowed_in_either_bar_and_ignore_configured_labels() {
groups[0][0].text,
Cow::Borrowed("server one + server two")
));
let mut terminal = Terminal::new(ratatui::backend::TestBackend::new(25, 1)).unwrap();
terminal
.draw(|frame| draw_chrome(frame, groups, Rect::new(0, 0, 25, 1)))
.unwrap();
assert_eq!(
pane_screen(&terminal, Rect::new(0, 0, 25, 1)),
" server one + server two "
);
for x in [0, 24] {
assert_eq!(terminal.backend().buffer()[(x, 0)].bg, Color::Cyan);
}
}
}
@@ -4961,6 +4972,7 @@ fn chrome_separates_visible_segments_once_in_every_anchor() {
line.left.clear();
line.center.clear();
line.right.clear();
line.segments.entry("lsp".into()).or_default().padding = 0;
let names = vec![
"before".into(),
"lsp".into(),