summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-04-09 00:26:25 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-04-09 00:26:25 +0900
commit4cd37fc02b4491d4c9a5f6a27ad41895ad1a62cc (patch)
treeeafd69e6bae96cc67390e09b1ede2d7f3ad3bc1d
parent69b9d674a3842cc2a12d88268db1db7248cb61a6 (diff)
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.
-rw-r--r--src/tui/light.go2
1 files changed, 1 insertions, 1 deletions
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()
}
}