diff --git a/internal/tui/bubbles/repo/bubble.go b/internal/tui/bubbles/repo/bubble.go index e50c4cefe03de86c15419577e1caa92437cacce0..12f0ebbc237961c2510c3e6a0f72b07429e5bf82 100644 --- a/internal/tui/bubbles/repo/bubble.go +++ b/internal/tui/bubbles/repo/bubble.go @@ -224,16 +224,14 @@ func (b *Bubble) glamourize(md string) (string, error) { if err != nil { return "", err } - // For now, truncate long lines in Glamour that would otherwise break the - // layout when wrapping. This is very likely due to #43 in Reflow, which - // has to do with a bug in the way lines longer than the given width are - // wrapped. + // For now, hard-wrap long lines in Glamour that would otherwise break the + // layout when wrapping. This may be due to #43 in Reflow, which has to do + // with a bug in the way lines longer than the given width are wrapped. // // https://github.com/muesli/reflow/issues/43 // // TODO: solve this upstream in Glamour/Reflow. - mdt = lipgloss.NewStyle().MaxWidth(w).Render(mdt) - return mdt, nil + return wrap.String(mdt, w), nil } func max(a, b int) int {