Skip to content

Commit

Permalink
fix width
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdoe committed Apr 15, 2020
1 parent 313ddea commit 6b83b42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/util/size.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ func GetWidth() uint {
}
}
width, _, _ := terminal.GetSize(0)
if width < 0 {
return 80
}
return uint(width)
}

0 comments on commit 6b83b42

Please sign in to comment.