diff --git a/contact/ui/nav_utils.py b/contact/ui/nav_utils.py index 4573aa0..f3e2335 100644 --- a/contact/ui/nav_utils.py +++ b/contact/ui/nav_utils.py @@ -352,6 +352,9 @@ def move_main_highlight( highlight_line(menu_win, menu_pad, old_idx, new_idx, visible_height) + if ui_state.current_window == 0: # hack to fix max_index + max_index += 1 + draw_main_arrows(menu_win, max_index, ui_state.start_index, ui_state.current_window) menu_win.refresh() @@ -391,9 +394,6 @@ def draw_main_arrows(win: object, max_index: int, start_index: List[int], curren usable_height = height - 2 usable_width = width - 2 - if current_window == 1: - pass - if current_window == 1 and ui_state.display_log: if log_height := kwargs.get("log_height"): usable_height -= log_height - 1