go fmt'd cmd.go

This commit is contained in:
Josh Yan 2024-05-15 17:26:39 -07:00
parent 799aa9883c
commit 26bfc1c443

View file

@ -739,7 +739,7 @@ type displayResponseState struct {
wordBuffer string
}
// using runewidth instead of len (cus length is number of bytes, we wnat display length)
// using runewidth instead of len (cus length is number of bytes, we want display length)
func displayResponse(content string, wordWrap bool, state *displayResponseState) {
termWidth, _, _ := term.GetSize(int(os.Stdout.Fd()))
if wordWrap && termWidth >= 10 {