From 4cd37fc02b4491d4c9a5f6a27ad41895ad1a62cc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 9 Apr 2024 00:26:25 +0900 Subject: [PATCH] Disable line wrapping during rendering Prevent unwanted line wraps that break the layout when the actual display width of a character is different than expected. --- src/tui/light.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/light.go b/src/tui/light.go index 216c4c36..e42d398b 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -71,7 +71,7 @@ func (r *LightRenderer) csi(code string) string { func (r *LightRenderer) flush() { if r.queued.Len() > 0 { - fmt.Fprint(os.Stderr, "\x1b[?25l"+r.queued.String()+"\x1b[?25h") + fmt.Fprint(os.Stderr, "\x1b[?7l\x1b[?25l"+r.queued.String()+"\x1b[?25h\x1b[?7h") r.queued.Reset() } }