From 9604c92efbc0f6a97ac3dbcdc85fb7abf8967e99 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Fri, 23 Jan 2026 15:29:53 +0100 Subject: [PATCH] fix: commands height (#1954) --- internal/ui/dialog/commands.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/ui/dialog/commands.go b/internal/ui/dialog/commands.go index 66d924a28a64a7ad9dff3081878290b3f74cc230..179797fb9c094bb81253ae560fc738b6ea536cb2 100644 --- a/internal/ui/dialog/commands.go +++ b/internal/ui/dialog/commands.go @@ -258,8 +258,7 @@ func (c *Commands) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor { c.input.SetWidth(innerWidth - t.Dialog.InputPrompt.GetHorizontalFrameSize() - 1) // (1) cursor padding - listHeight := min(height-heightOffset, c.list.Len()) - c.list.SetSize(innerWidth, listHeight) + c.list.SetSize(innerWidth, height-heightOffset) c.help.SetWidth(innerWidth) rc := NewRenderContext(t, width)