소스 검색

updated double-width display

Josh Yan 11 달 전
부모
커밋
c9e584fb90
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      cmd/cmd.go

+ 1 - 0
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 = ""