fix: Ensure full reverse video background for multi-line status bar
This commit is contained in:
parent
50e4401399
commit
46760052d7
8
gtm
8
gtm
|
|
@ -841,7 +841,13 @@ def draw_help_popup(stdscr, state):
|
|||
def draw_status_bar_background(stdscr, layout: StatusBarLayout):
|
||||
"""Fill the entire status bar area with reverse video background"""
|
||||
for y in range(layout.start_y, layout.start_y + layout.total_height):
|
||||
for x in range(layout.screen_width - 1):
|
||||
try:
|
||||
# Fill the entire line with spaces in reverse video
|
||||
# This is more efficient than adding characters one by one
|
||||
stdscr.addstr(y, 0, ' ' * layout.screen_width, curses.A_REVERSE)
|
||||
except curses.error:
|
||||
# If we can't fill the entire line at once, try character by character
|
||||
for x in range(layout.screen_width):
|
||||
try:
|
||||
stdscr.addch(y, x, ' ', curses.A_REVERSE)
|
||||
except curses.error:
|
||||
|
|
|
|||
Loading…
Reference in New Issue