Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

updated double-width display

Josh Yanc9e584fb9009
diff --git a/cmd/cmd.go b/cmd/cmd.go
index 1606e9f1f..91a77c791 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -745,6 +745,7 @@ func displayResponse(content string, wordWrap bool, state *displayResponseState)
if wordWrap && termWidth >= 10 {
for _, ch := range content {
if state.lineLength+1 > termWidth - 5 {
+
if runewidth.StringWidth(state.wordBuffer) > termWidth - 10 {
fmt.Printf("%s%c", state.wordBuffer, ch)
state.wordBuffer = ""