fix: Clear background of help popup to prevent text bleed-through

This commit is contained in:
n loewen (aider) 2025-06-08 02:36:31 +01:00
parent 78eaaf35e2
commit 0ab7482d5d
1 changed files with 8 additions and 0 deletions

8
gtm
View File

@ -660,6 +660,14 @@ def draw_help_popup(stdscr, state):
popup_x = max(0, (state.width - popup_width) // 2)
popup_y = max(0, (state.height - popup_height) // 2)
# Fill the entire popup area with spaces to clear background
for y in range(popup_y, popup_y + popup_height):
for x in range(popup_x, popup_x + popup_width):
try:
stdscr.addch(y, x, ' ')
except curses.error:
pass
# Draw popup border
for y in range(popup_y, popup_y + popup_height):
for x in range(popup_x, popup_x + popup_width):