From 23ea7abd51741b8dcb9ea51d17c978367d96045f Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Wed, 11 Mar 2026 11:56:44 +1100 Subject: [PATCH] fix: prevent newline characters from being printed (#2428) --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.go b/ui.go index 6c5bc816..ff553cc0 100644 --- a/ui.go +++ b/ui.go @@ -91,7 +91,7 @@ func (win *win) print(screen tcell.Screen, x, y int, st tcell.Style, s string) t if gc == "\t" { w := gOpts.tabstop - (x+off+printLength(b.String()))%gOpts.tabstop b.WriteString(strings.Repeat(" ", w)) - } else if gc != "\r" { + } else if gc != "\r" && gc != "\n" { b.WriteString(gc) }