mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-10 06:11:22 +03:00
fix(help): full help renders fully when width is unset.
This commit is contained in:
committed by
Maas Lalani
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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user