fix(help): full help renders fully when width is unset.

This commit is contained in:
Craig Wilson 2022-08-18 13:50:48 -05:00 committed by Maas Lalani
parent 9a48dca003
commit aea42690e7

View File

@ -203,7 +203,7 @@ func (m Model) FullHelpView(groups [][]key.Binding) string {
// Column // Column
totalWidth += lipgloss.Width(col) totalWidth += lipgloss.Width(col)
if totalWidth > m.Width { if m.Width > 0 && totalWidth > m.Width {
break break
} }
@ -212,7 +212,7 @@ func (m Model) FullHelpView(groups [][]key.Binding) string {
// Separator // Separator
if i < len(group)-1 { if i < len(group)-1 {
totalWidth += sepWidth totalWidth += sepWidth
if totalWidth > m.Width { if m.Width > 0 && totalWidth > m.Width {
break break
} }
} }