mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-10 14:16:41 +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
|
// 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user