style(pager): single-line fmt for highlight Style chain
This commit is contained in:
@@ -385,10 +385,7 @@ impl ModalView for PagerView {
|
||||
} else {
|
||||
Color::Yellow
|
||||
};
|
||||
let highlight = Style::default()
|
||||
.bg(bg)
|
||||
.fg(fg)
|
||||
.add_modifier(Modifier::BOLD);
|
||||
let highlight = Style::default().bg(bg).fg(fg).add_modifier(Modifier::BOLD);
|
||||
for span in line.spans.iter_mut() {
|
||||
span.style = highlight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user