Skip to content

Commit

Permalink
fix(help): full help renders fully when width is unset.
Browse files Browse the repository at this point in the history
  • Loading branch information
craiggwilson authored and maaslalani committed Oct 7, 2022
1 parent 9a48dca commit aea4269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}
}
Expand Down

0 comments on commit aea4269

Please sign in to comment.