diff --git a/helix-tui/src/buffer.rs b/helix-tui/src/buffer.rs index d28c32fcc..9e1746b0f 100644 --- a/helix-tui/src/buffer.rs +++ b/helix-tui/src/buffer.rs @@ -409,6 +409,8 @@ impl Buffer { let max_x_offset = min(self.area.right() as usize, width.saturating_add(x as usize)); for s in string.graphemes(true) { + let s = if s == "\n" { " " } else { s }; + let width = s.width(); if width == 0 { continue;