fsmon: fix minimum height calculation

This commit is contained in:
Forza 2024-12-30 14:26:36 +01:00
parent 182582700e
commit d2c911b805

View File

@ -402,7 +402,7 @@ def display_ui(stdscr, btrfs_fs, fs_labels):
# Prevent drawing UI if terminal is too small
height, width = stdscr.getmaxyx()
MIN_HEIGHT = len(uuids) + 4 # Enough to show list without charts
MIN_HEIGHT = len(uuids) + 5 # Enough to show list without charts
if (height < MIN_HEIGHT) or (width < MIN_WIDTH):
stdscr.addstr(
0, 0, f"Terminal too small (need ≥ {MIN_HEIGHT}x{MIN_WIDTH})."