From 4e07164bdcf35c050d383b37699c5740334c8647 Mon Sep 17 00:00:00 2001 From: "n loewen (aider)" Date: Sun, 8 Jun 2025 02:54:19 +0100 Subject: [PATCH] fix: Dynamically calculate help popup height to show all help items --- gtm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtm b/gtm index 9a70157..76af85d 100755 --- a/gtm +++ b/gtm @@ -655,7 +655,8 @@ def draw_help_popup(stdscr, state): # Calculate popup dimensions and position popup_width = 60 - popup_height = 20 + # Calculate height based on number of help items plus margins + popup_height = len(help_items) + 5 # 5 extra lines for borders, title, and footer popup_x = max(0, (state.width - popup_width) // 2) popup_y = max(0, (state.height - popup_height) // 2)