Skip to content

Commit 9390d5c

Browse files
committed
Limit the number of help lines displayed
1 parent ea90cf8 commit 9390d5c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/ui/app.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ func (m model) helpView() string {
324324
keyLines := []string{}
325325
descLines := []string{}
326326
for _, h := range helpItems() {
327+
if len(keyLines) >= contentHeight {
328+
break
329+
}
327330
keys := make([]string, 0, len(h.keys))
328331
for _, k := range h.keys {
329332
keys = append(keys, "<"+helpKeyStyle.Render(k)+">")

0 commit comments

Comments
 (0)