From 799aa9883cd9d33b44e7ab64540093a9a4e3cbab Mon Sep 17 00:00:00 2001 From: Josh Yan Date: Wed, 15 May 2024 17:24:17 -0700 Subject: [PATCH] go fmt'd cmd.go --- cmd/cmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 91a77c79..a0ae86d3 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -744,9 +744,9 @@ func displayResponse(content string, wordWrap bool, state *displayResponseState) termWidth, _, _ := term.GetSize(int(os.Stdout.Fd())) if wordWrap && termWidth >= 10 { for _, ch := range content { - if state.lineLength+1 > termWidth - 5 { + if state.lineLength+1 > termWidth-5 { - if runewidth.StringWidth(state.wordBuffer) > termWidth - 10 { + if runewidth.StringWidth(state.wordBuffer) > termWidth-10 { fmt.Printf("%s%c", state.wordBuffer, ch) state.wordBuffer = "" state.lineLength = 0 @@ -765,7 +765,7 @@ func displayResponse(content string, wordWrap bool, state *displayResponseState) if runewidth.RuneWidth(ch) >= 2 { state.wordBuffer = "" continue - } + } switch ch { case ' ':