소스 검색

Merge pull request #10169 from laurazard/fix-terminal-height

Adjust terminal height calc
Laura Brehm 2 년 전
부모
커밋
db267d86c1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pkg/progress/tty.go

+ 1 - 1
pkg/progress/tty.go

@@ -158,7 +158,7 @@ func (w *ttyWriter) print() {
 	}
 
 	skipChildEvents := false
-	if len(w.eventIDs) > goterm.Height()-1 {
+	if len(w.eventIDs) > goterm.Height()-2 {
 		skipChildEvents = true
 	}
 	numLines := 0