We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 417b98d + 401989e commit 989f18cCopy full SHA for 989f18c
1 file changed
pkg/tui/components/messages/messages.go
@@ -331,6 +331,13 @@ func (m *model) View() string {
331
visibleLines = m.applySelectionHighlight(visibleLines, startLine)
332
}
333
334
+ // Ensure each line doesn't exceed the width to prevent layout overflow
335
+ for i, line := range visibleLines {
336
+ if ansi.StringWidth(line) > m.width {
337
+ visibleLines[i] = ansi.Truncate(line, m.width, "")
338
+ }
339
340
+
341
return strings.Join(visibleLines, "\n")
342
343
0 commit comments