mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 14:22:58 +03:00
fix(help): full help renders fully when width is unset.
This commit is contained in:
parent
9a48dca003
commit
aea42690e7
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user