diff --git a/crates/tui/src/tui/markdown_render.rs b/crates/tui/src/tui/markdown_render.rs index 93fbc8b1..479fd58e 100644 --- a/crates/tui/src/tui/markdown_render.rs +++ b/crates/tui/src/tui/markdown_render.rs @@ -497,9 +497,7 @@ fn render_line_with_links( for ch in word.text.chars() { let cw = ch.width().unwrap_or(1); if chunk_w + cw > width && chunk_w > 0 { - lines.push(Line::from(vec![word.span_for(std::mem::take( - &mut chunk, - ))])); + lines.push(Line::from(vec![word.span_for(std::mem::take(&mut chunk))])); chunk_w = 0; } chunk.push(ch); @@ -663,7 +661,11 @@ fn parse_inline_spans(line: &str, base_style: Style, link_style: Style) -> Vec Vec> { - with_osc8(false, || render_line_with_links(text, width, Style::default(), Style::default())) + with_osc8(false, || { + render_line_with_links(text, width, Style::default(), Style::default()) + }) } #[test]