Explorar o código

Adjust terminal height calc

Signed-off-by: Laura Brehm <[email protected]>
Laura Brehm %!s(int64=3) %!d(string=hai) anos
pai
achega
9daf41892f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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