Remove statusbar "(lines n)" display, and write a long commit message
for testing 2 3 4 5 6 7 8
This commit is contained in:
parent
ae1cd3ed96
commit
14f0f5ea9f
14
gtm
14
gtm
|
|
@ -1015,19 +1015,6 @@ def draw_search_mode(stdscr, state: AppState, layout: StatusBarLayout):
|
|||
except curses.error:
|
||||
pass
|
||||
|
||||
def draw_resize_handle(stdscr, state: AppState, layout: StatusBarLayout):
|
||||
"""Draw the status bar height indicator (but no visible handle)"""
|
||||
try:
|
||||
# Only show the number of lines when there are more than 2
|
||||
if state.status_bar_height > 2:
|
||||
height_text = f"({state.status_bar_height} lines)"
|
||||
height_x = layout.screen_width // 2 - len(height_text) // 2
|
||||
# Draw the height indicator on the main status line, but only if it won't overlap with other content
|
||||
if height_x > 0 and height_x + len(height_text) < layout.screen_width:
|
||||
stdscr.addstr(layout.main_status_y, height_x, height_text, curses.A_REVERSE | curses.A_BOLD)
|
||||
except curses.error:
|
||||
pass
|
||||
|
||||
def draw_status_bars(stdscr, state):
|
||||
layout = StatusBarLayout.create(state.height, state.width, state.status_bar_height)
|
||||
|
||||
|
|
@ -1040,7 +1027,6 @@ def draw_status_bars(stdscr, state):
|
|||
draw_commit_details(stdscr, state, layout)
|
||||
else:
|
||||
draw_main_status_line(stdscr, state, layout)
|
||||
draw_resize_handle(stdscr, state, layout) # Draw handle before commit details
|
||||
draw_commit_details(stdscr, state, layout)
|
||||
|
||||
def draw_ui(stdscr, state):
|
||||
|
|
|
|||
Loading…
Reference in New Issue