fix: prevent newline characters from being printed (#2428)

This commit is contained in:
Joe Lim authored and GitHub committed 2026-03-11 11:56:44 +11:00
1 parent 3ec5ee8616
commit 23ea7abd51
1 file changed
+1 -1
+1 -1
View File
@@ -91,7 +91,7 @@ func (win *win) print(screen tcell.Screen, x, y int, st tcell.Style, s string) t
if gc == "\t" { if gc == "\t" {
w := gOpts.tabstop - (x+off+printLength(b.String()))%gOpts.tabstop w := gOpts.tabstop - (x+off+printLength(b.String()))%gOpts.tabstop
b.WriteString(strings.Repeat(" ", w)) b.WriteString(strings.Repeat(" ", w))
} else if gc != "\r" { } else if gc != "\r" && gc != "\n" {
b.WriteString(gc) b.WriteString(gc)
} }