mirror of https://github.com/helix-editor/helix
feat: implement line breaks for custom helix renderer
parent
fa2de3222f
commit
9e26253b16
|
@ -115,8 +115,13 @@ pub fn highlighted_code_block<'a>(
|
|||
style_text
|
||||
};
|
||||
|
||||
if ch == '\n' {
|
||||
lines.push(Spans::from(spans));
|
||||
spans = vec![];
|
||||
} else {
|
||||
spans.push(Span::styled(ch.to_string(), style));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
let mut highlights = Vec::new();
|
||||
for event in highlight_iter {
|
||||
|
|
Loading…
Reference in New Issue