From aea42690e784f6631853e83d3401cf1ae4b4ab9b Mon Sep 17 00:00:00 2001 From: Craig Wilson Date: Thu, 18 Aug 2022 13:50:48 -0500 Subject: [PATCH] fix(help): full help renders fully when width is unset. --- help/help.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/help/help.go b/help/help.go index 90971ac..5ee7233 100644 --- a/help/help.go +++ b/help/help.go @@ -203,7 +203,7 @@ func (m Model) FullHelpView(groups [][]key.Binding) string { // Column totalWidth += lipgloss.Width(col) - if totalWidth > m.Width { + if m.Width > 0 && totalWidth > m.Width { break } @@ -212,7 +212,7 @@ func (m Model) FullHelpView(groups [][]key.Binding) string { // Separator if i < len(group)-1 { totalWidth += sepWidth - if totalWidth > m.Width { + if m.Width > 0 && totalWidth > m.Width { break } }