diff --git a/cmd/docs.go b/cmd/docs.go index 23d877a13..547cd018a 100644 --- a/cmd/docs.go +++ b/cmd/docs.go @@ -49,7 +49,8 @@ var docsCmd = &cobra.Command{ if term.IsTerminal(int(os.Stdout.Fd())) { termWidth, _, err := term.GetSize(int(os.Stdout.Fd())) if err == nil && termWidth > 0 { - screenWidth = termWidth + // Adjusted for subtle padding effect at the terminal boundaries + screenWidth = termWidth - 2 } }