From 1cee7b342eabb324675ab38536bf439384698487 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 3 Apr 2026 13:06:04 -0400 Subject: [PATCH] =?UTF-8?q?play.py:=20fixed-width=20selection=20bar=20?= =?UTF-8?q?=E2=80=94=20no=20more=20size=20jumping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- play.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/play.py b/play.py index 62b4c6b..ae98892 100644 --- a/play.py +++ b/play.py @@ -498,9 +498,11 @@ def pick_track(): num = f"{i + 1:>2}." + # Fixed bar width — pad to consistent length + bar_width = name_col + 35 # enough for all columns if i == selected[0]: - sel_meta = f"{cached} {bpm_col} {time_col} {key_col}" - full = f" ▸ {num} {name_display}{sel_meta}" + full = f" ▸ {num} {name_display}{meta_str}" + full = full[:bar_width].ljust(bar_width) stdscr.addstr(y, 1, full[:w - 2], curses.A_BOLD | curses.color_pair(1)) else: