fix: Clear background of help popup to prevent text bleed-through
This commit is contained in:
parent
78eaaf35e2
commit
0ab7482d5d
8
gtm
8
gtm
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue