From be6e4ce81f3e0fd6424d77b7d26c3701ee680259 Mon Sep 17 00:00:00 2001 From: RoseSecurity Date: Mon, 11 Nov 2024 08:53:13 -0500 Subject: [PATCH] fix: adjusted rendering based on terminal size by subtracting 2 characters which appears to be a subtle padding effect at the terminal boundaries --- cmd/docs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } }